GithubHelp home page GithubHelp logo

deepdream-docker's People

Contributors

herval avatar saracubillas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

deepdream-docker's Issues

error on 240x320 image

image is a 200 kb png file in the directory:

C:/Users/Stefan.DESKTOP-QQLBN9D/Desktop/deepdream-docker-master/pics
command issued in powershell:

docker run -i -t -e INPUT=Image00001.png -e ITER=20 -e SCALE=0.10 -e MODEL='inception_3b/5x5_reduce' -v C:/Users/Stefan.DESKTOP-QQLBN9D/Desktop/deepdream-docker-master/pics:/data herval/deepdream

powershell output:

Traceback (most recent call last):
  File "deepdream.py", line 104, in <module>
    step_one = deepdream(net, img)
  File "deepdream.py", line 68, in deepdream
    octaves = [preprocess(net, base_img)]
  File "deepdream.py", line 44, in preprocess
    return np.float32(np.rollaxis(img, 2)[::-1]) - net.transformer.mean['data']
ValueError: operands could not be broadcast together with shapes (4,320,240) (3,1,1)

Error when running on a 1920x1080px image

E0821 16:05:02.724855     1 upgrade_proto.cpp:618] Attempting to upgrade input file specified using deprecated V1LayerParameter: /caffe/models/bvlc_googlenet/bvlc_googlenet.caffemodel
I0821 16:05:02.752223     1 upgrade_proto.cpp:626] Successfully upgraded file specified using deprecated V1LayerParameter
This might take a little while...
Traceback (most recent call last):
  File "deepdream.py", line 104, in <module>
    step_one = deepdream(net, img)
  File "deepdream.py", line 68, in deepdream
    octaves = [preprocess(net, base_img)]
  File "deepdream.py", line 44, in preprocess
    return np.float32(np.rollaxis(img, 2)[::-1]) - net.transformer.mean['data']
ValueError: operands could not be broadcast together with shapes (4,1080,1920) (3,1,1) 

IOError: [Errno 2] No such file or directory

$ docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): darwin/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d
OS/Arch (server): linux/amd64
$ boot2docker version
Boot2Docker-cli version: v1.7.1
Git commit: 8fdc6f5
$ vboxmanage --version
5.0.0r101573
$ ls -al /tmp/carousel-item-*
-rw-r--r--@ 1 xerc  wheel  1857559 26 Jul 15:59 /tmp/carousel-item-1.jpg
-rw-r--r--@ 1 xerc  wheel   657192 26 Jul 15:59 /tmp/carousel-item-3.jpg
-rw-r--r--@ 1 xerc  wheel  2581746 26 Jul 15:59 /tmp/carousel-item-5.jpg
$ time docker run -i -t -e INPUT=carousel-item-1.jpg -v /tmp:/data herval/deepdream
libdc1394 error: Failed to initialize libdc1394
Processing file: carousel-item-1.jpg
Traceback (most recent call last):
  File "deepdream.py", line 25, in <module>
    img = np.float32(PIL.Image.open('/data/%s' % input_file))
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1996, in open
    fp = builtins.open(fp, "rb")
IOError: [Errno 2] No such file or directory: '/data/carousel-item-1.jpg'

real    0m1.530s
user    0m0.143s
sys     0m0.008s

looks like the image is not transfered to the VM - or did i miss some configuration?

numpy error

I'm getting this error when I try to run an image conversion on Windows 10:

RuntimeError: module compiled against API version 0xa but this version of numpy
is 0x9

The command I used on the Windows 10 host via gitbash is:

$ winpty docker run -it -e INPUT=cat.jpg -e ITER=20 -e SCALE=0.10 -e MODEL='inception_3b/5x5_reduce' -v //g/dockerstuff/deepdream-docker-master:/data herval/deepdream

The "//g/dockerstuff/.." is the notation for the g: drive (presumably from gitbash). I don't think it's the problem since the error is about numpy.

Any ideas?

Image fails to run when given the full pathname of an image file

When the deepdream image is run with the full pathname of the input image the below error message is generated

libdc1394 error: Failed to initialize libdc1394
Processing file: /home/crosswalk/Pictures/GIMP/dreamtest.jpg
Traceback (most recent call last):
  File "deepdream.py", line 25, in <module>
    img = np.float32(PIL.Image.open('/data/%s' % input_file))
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1996, in open
    fp = builtins.open(fp, "rb")
IOError: [Errno 2] No such file or directory: '/data//home/crosswalk/Pictures/GIMP/dreamtest.jpg'

It looks like a parsing error since there is an extra whack being added before the full pathname for the input image.

step by step correct install-PULL not build -t

Ok for docker .. all done, find it there!: https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/ and chose AMD instal for current CPU as intel too !! ...
then i dl your "herval" pre_install docker .. but the build doesn't go on ! ..
docker build -t herval/deepdream "docker build" requires exactly 1 argument. See 'docker build --help'. Usage: docker build [OPTIONS] PATH | URL | - Build an image from a Dockerfile

also i tried some trick as --> docker build -t Dockerfile/deepdream and define a sub-directory ...
MAY BE the solution is to open the file "Dockerfile" and just do all the instruction manually and not by any docker then to use docker ? (as in readme.md ..?)

  1. So .. dockerfile seems like a script : how to make it install its lines ?

I know, many had found the way to get it ok .. i've installed all the packages before, and then i see your pre-build docker so i thought it would be easier .. but in fact the build in docker is not so direct.. some DEV easy secrets ;)
Regards for any stepBYstep & kind answer !

The computation stops without error but without output

Hello,

thanks for this work.
I tried it on my laptop (mac book pro) but it seems the programs just crashes without errror.
THe folder output is created but there is nothing inside.

I0215 17:51:14.393050     1 net.cpp:194] conv1/relu_7x7 does not need backward computation.
I0215 17:51:14.393059     1 net.cpp:194] conv1/7x7_s2 does not need backward computation.
I0215 17:51:14.393100     1 net.cpp:235] This network produces output prob
I0215 17:51:14.393239     1 net.cpp:482] Collecting Learning Rate and Weight Decay.
I0215 17:51:14.393268     1 net.cpp:247] Network initialization done.
I0215 17:51:14.393278     1 net.cpp:248] Memory required for data: 545512320
E0215 17:51:14.620756     1 upgrade_proto.cpp:618] Attempting to upgrade input file specified using deprecated V1LayerParameter: /caffe/models/bvlc_googlenet/bvlc_googlenet.caffemodel
I0215 17:51:14.735839     1 upgrade_proto.cpp:626] Successfully upgraded file specified using deprecated V1LayerParameter
This might take a little while...
/usr/lib/python2.7/dist-packages/scipy/ndimage/interpolation.py:532: UserWarning: From scipy 0.13.0, the output shape of zoom() is calculated with round() instead of int() - for these inputs the size of the returned array has changed.
  "the returned array has changed.", UserWarning)
vallettea@retina:~$

dockerfile fails to build

fails on: The command '/bin/sh -c pip install -r python/requirements.txt' returned a non-zero code: 1

Full failure log:

Step 11 : RUN pip install -r python/requirements.txt
 ---> Running in b837abbcfe4d
Downloading/unpacking Cython>=0.19.2 (from -r python/requirements.txt (line 1))
  Running setup.py (path:/tmp/pip_build_root/Cython/setup.py) egg_info for package Cython
    Unable to find pgen, not compiling formal grammar.

    warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.pxd' under directory 'Cython/Utility'
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.1 in /usr/lib/python2.7/dist-packages (from -r python/requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): scipy>=0.13.2 in /usr/lib/python2.7/dist-packages (from -r python/requirements.txt (line 3))
Downloading/unpacking scikit-image>=0.9.3 (from -r python/requirements.txt (line 4))
  Running setup.py (path:/tmp/pip_build_root/scikit-image/setup.py) egg_info for package scikit-image
    Unable to find pgen, not compiling formal grammar.
    No eggs found in /tmp/easy_install-ZwzgcI/Cython-0.24/egg-dist-tmp-wQkzU_ (setup script problem?)
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_root/scikit-image/setup.py", line 146, in <module>
        **extra
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py", line 126, in setup
        dist = setup(**new_attr)
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py", line 169, in setup
        return old_setup(**new_attr)
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/numpy_distribution.py", line 16, in __init__
        Distribution.__init__(self, attrs)
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 239, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 264, in fetch_build_eggs
        replace_conflicting=True
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
        raise DistributionNotFound(req)
    pkg_resources.DistributionNotFound: cython>=0.21
    Complete output from command python setup.py egg_info:
    Unable to find pgen, not compiling formal grammar.

No eggs found in /tmp/easy_install-ZwzgcI/Cython-0.24/egg-dist-tmp-wQkzU_ (setup script problem?)

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/scikit-image/setup.py", line 146, in <module>

    **extra

  File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py", line 126, in setup

    dist = setup(**new_attr)

  File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py", line 169, in setup

    return old_setup(**new_attr)

  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup

    _setup_distribution = dist = klass(attrs)

  File "/usr/lib/python2.7/dist-packages/numpy/distutils/numpy_distribution.py", line 16, in __init__

    Distribution.__init__(self, attrs)

  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 239, in __init__

    self.fetch_build_eggs(attrs.pop('setup_requires'))

  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 264, in fetch_build_eggs

    replace_conflicting=True

  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve

    raise DistributionNotFound(req)

pkg_resources.DistributionNotFound: cython>=0.21

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/scikit-image
Storing debug log for failure in /root/.pip/pip.log
The command '/bin/sh -c pip install -r python/requirements.txt' returned a non-zero code: 1

Any suggestions?

Thank you!

Error building locally

When I try to build it locally I get this error:

Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/scikit-image
Storing debug log for failure in /root/.pip/pip.log
The command '/bin/sh -c cd /opt/caffe && (pip install -r python/requirements.txt)' returned a non-zero code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.