Giter VIP home page Giter VIP logo

Comments (9)

Yangqing avatar Yangqing commented on April 27, 2024 38

Install scikit-image should solve the problem. If you have pip (strongly
recommended), it is as simple as:

pip install scikit-image

Yangqing

On Sat, Feb 1, 2014 at 9:11 PM, amiltonwong [email protected]:

Hi, Evan Shelhamer,
I had succeeded in "make pycaffe" without modifying the code
"pycaffe.cpp", and my machine's numpy version is 1.8.0. Now , I had issues
the same as which you described:
"import caffe" works, but "from caffe import imagenet" failed, the message
is as follows:

import caffe
from caffe import imagenet
Traceback (most recent call last):
File "", line 1, in
File "/root/caffe-master/python/caffe/imagenet/init.py", line 1, in
from .wrapper import *
File "/root/caffe-master/python/caffe/imagenet/wrapper.py", line 7, in
from skimage import io
ImportError: No module named skimage

P.S. : I had succeeded in compilation for caffe 'make all' and everything
is ok (My system is Ubuntu 12.04)

Could you suggest me how to fix it?

Best regards,
Milton

Reply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-33892612
.

from caffe.

sealfoss avatar sealfoss commented on April 27, 2024 5

It is, sorta. They recommend using Anaconda. Do that.

from caffe.

amiltonwong avatar amiltonwong commented on April 27, 2024 4

Thanks Yangqing,
I had fixed it.
After installing cython , and then scikit-image.

Best regards,
Milton

from caffe.

evolu8 avatar evolu8 commented on April 27, 2024 3

Would be great for this to make its way into the recommended install procedure documents.

from caffe.

longjon avatar longjon commented on April 27, 2024

See #44.

from caffe.

shelhamer avatar shelhamer commented on April 27, 2024

@longjon I included this patch at https://github.com/shelhamer/caffe/commits/numpy-lessthan-1-7 and tested with numpy-1.6. It builds, and import caffe works, but there is an instant segfault on from caffe import imagenet.

I tested by swapping out numpy versions in conda: conda install numpy=1.6 to test then conda install numpy=1.7 to revert.

from caffe.

amiltonwong avatar amiltonwong commented on April 27, 2024

Hi, Evan Shelhamer,
I had succeeded in "make pycaffe" without modifying the code "pycaffe.cpp", and my machine's numpy version is 1.8.0. Now , I had issues the same as which you described:
"import caffe" works, but "from caffe import imagenet" failed, the message is as follows:

import caffe
from caffe import imagenet
Traceback (most recent call last):
File "", line 1, in
File "/root/caffe-master/python/caffe/imagenet/init.py", line 1, in
from .wrapper import *
File "/root/caffe-master/python/caffe/imagenet/wrapper.py", line 7, in
from skimage import io
ImportError: No module named skimage

P.S. : I had succeeded in compilation for caffe 'make all' and everything is ok (My system is Ubuntu 12.04)

Could you suggest me how to fix it?

Best regards,
Milton

from caffe.

Yangqing avatar Yangqing commented on April 27, 2024

I assume this is already solved? Please kindly reopen if problem persists.

from caffe.

ZhilunX avatar ZhilunX commented on April 27, 2024

I faced a similar problem now. I have installed numpy 1.8 and the old version is work for me. But when I update the caffe project today ( it adds sigmoid layer) and remake this project. it throws the same problems, any solutions? Thanks

from caffe.

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.