Comments (9)
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 skimageP.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,
MiltonReply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-33892612
.
from caffe.
It is, sorta. They recommend using Anaconda. Do that.
from caffe.
Thanks Yangqing,
I had fixed it.
After installing cython , and then scikit-image.
Best regards,
Milton
from caffe.
Would be great for this to make its way into the recommended install procedure documents.
from caffe.
See #44.
from caffe.
@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.
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.
I assume this is already solved? Please kindly reopen if problem persists.
from caffe.
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)
- caffe time -model -weights -gpu=0
- BUG: error happens while building the project using cmake, if without preinstall `gflags`. HOT 1
- Makefile
- import error: segment fault when import caffe
- Segmentation fault (core dumped) when creating imageset
- MSBuild Error
- DeleteMe
- Glib 3.4.30 not found HOT 1
- Error MSB6006: "cmd.exe" exited with code -1073741 515 HOT 2
- blob.hpp dimension check code problem
- Is it possible to use OpenCL on FreeBSD without using ROCm?
- How to build Caffe(OpenCL) on Linux from source code? HOT 1
- Caffe(OpenCL) Error: ordered comparison between pointer and zero ('int32_t *' (aka 'int *') and 'int') HOT 1
- Failed inference with nyud-fcn32s-hha
- ю
- caffe installation HOT 1
- Assessment of the difficulty in porting CPU architecture for caffe
- How to add new layer to caffe like HardSigmoid or Resize HOT 1
- module 'caffe' has no attribute 'set_mode_cpu'
- `GLOG_LIBRARYRARY_DIRS` appears to be in error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caffe.