Git Product home page Git Product logo

Comments (5)

BirkhoffLee avatar BirkhoffLee commented on May 28, 2024

Hi macgyverfan, please run this command when the container exits so we can know what actually happened:

docker logs digits

Paste the results here. Thanks!

from have-fun-with-machine-learning.

macgyverfan avatar macgyverfan commented on May 28, 2024

BirkhoffLee please see below.

Thanks


| _ / | | / |
| |) | | (
|| | | | _

|
/_|| || |__/ 5.1-dev

Did you forget to "make pycaffe"?
"/root/caffe" from CAFFE_HOME does not point to a valid installation of Caffe.
Use the envvar CAFFE_ROOT to indicate a valid installation.
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/root/digits/digits/main.py", line 70, in
main()
File "/root/digits/digits/main.py", line 53, in main
import digits.config
File "digits/config/init.py", line 7, in
from . import ( # noqa
File "digits/config/caffe.py", line 228, in
executable, version, flavor = load_from_envvar('CAFFE_HOME')
File "digits/config/caffe.py", line 37, in load_from_envvar
import_pycaffe(python_dir)
File "digits/config/caffe.py", line 126, in import_pycaffe
import caffe
File "/root/caffe/python/caffe/init.py", line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/root/caffe/python/caffe/pycaffe.py", line 13, in
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4: invalid ELF header

from have-fun-with-machine-learning.

BirkhoffLee avatar BirkhoffLee commented on May 28, 2024

Mine did work. I have no idea why yours didn't.

birkhoff at Birkhoff-MBPR in ~/dev/have-fun-with-machine-learning (master)
$ docker run --name digits -d -p 8080:5000 -v $(pwd):/data/repo kaixhin/digits
Unable to find image 'kaixhin/digits:latest' locally
latest: Pulling from kaixhin/digits
16da43b30d89: Pull complete
1840843dafed: Pull complete
91246eb75b7d: Pull complete
7faa681b41d7: Pull complete
97b84c64d426: Pull complete
0b483d8c35bc: Pull complete
01f5c1884863: Pull complete
905f6e60ec15: Pull complete
d88440c3aa80: Pull complete
30d383ac5437: Pull complete
Digest: sha256:7a4091e1a66cc4768df5e6f03cd5c5fca1c15b4e9ee7cf9c876a2885af020ce4
Status: Downloaded newer image for kaixhin/digits:latest
c3d92781ccdcfd7929113a40bb74af7cc570461da58e600b6da6c44b0a9462c7

birkhoff at Birkhoff-MBPR in ~/dev/have-fun-with-machine-learning (master)
$ docker logs -f c3d92781ccdcfd7929113a40bb74af7cc570461da58e600b6da6c44b0a9462c7
libdc1394 error: Failed to initialize libdc1394
/usr/local/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
  ___ ___ ___ ___ _____ ___
 |   \_ _/ __|_ _|_   _/ __|
 | |) | | (_ || |  | | \__ \
 |___/___\___|___| |_| |___/ 5.1-dev

2018-01-26 07:46:24 [INFO ] Loaded 0 jobs.

Try running the following commands and run the DIGITS container with sudo again:

docker stop digits
docker rm digits
docker rmi kaixhin/digits

from have-fun-with-machine-learning.

macgyverfan avatar macgyverfan commented on May 28, 2024

Ran the above as you said and reran without sudo and in the directory of the cloned repository so I could run the docker command exactly as you have it above and it worked.

Cheers!

from have-fun-with-machine-learning.

BirkhoffLee avatar BirkhoffLee commented on May 28, 2024

Glad to hear :)

from have-fun-with-machine-learning.

Related Issues (20)

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.