Comments (6)
I've got the same problem when I tried installing caffe. I solved it by reinstall:
sudo pip install protobuf
Reference link: https://groups.google.com/forum/#!topic/caffe-users/9Q10WkpCGxs
The another error: libdc1394 error: Failed to initialize libdc1394. I solved it by:
sudo ln /dev/null /dev/raw1394
Reference link: http://stackoverflow.com/questions/12689304/ctypes-error-libdc1394-error-failed-to-initialize-libdc1394/12689392#12689392
from open_nsfw.
And when i run 'sudo docker run caffe:cpu caffe --version', it shows
'
libdc1394 error: Failed to initialize libdc1394
caffe version 1.0.0-rc3
'
from open_nsfw.
Thank you, XuefeiWen. Before i opened this issue, i had tried some ways like you advice, but it didn't work. I guess it occurred because of my computer, i will try again on another machine. Thanks a lot. @XuefeiWen
from open_nsfw.
I hit "libdc1394 error" too, and "sudo ln /dev/null /dev/raw1394" did not work in my two ubantu sytems (both of them were inited from VM) .... Is this a fatal issue? I can see it did not block follwoing process.
from open_nsfw.
I have meet the similar question.when I input the commond:docker run --volume=$(pwd):/workspace caffe:cpu python ./classify_nsfw.py --model_def nsfw_model/deploy.prototxt --pretrained_model nsfw_model/resnet_50_1by2_nsfw.caffemodel test_image.jpg
it failed with the output:
libdc1394 error: Failed to initialize libdc1394
Traceback (most recent call last):
File "./classify_nsfw.py", line 16, in
import caffe
File "/opt/caffe/python/caffe/init.py", line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/opt/caffe/python/caffe/pycaffe.py", line 15, in
import caffe.io
File "/opt/caffe/python/caffe/io.py", line 2, in
import skimage.io
ImportError: No module named skimage.io
Who knows how solve it? I would very greatful to you.
from open_nsfw.
I have tested in another computer with ubuntu system which is not inited from VM, it still has the same problem("libdc1394 error"). So i guess it's none of the VM's business. And i ignore the notice and try running "sudo docker run --volume=$(pwd):/workspace caffe:cpu python classify_nsfw.py --model_def nsfw_model/deploy.prototxt --pretrained_model nsfw_model/resnet_50_1by2_nsfw.caffemodel 1.png", it works! And you could ignore that problem, too. If you hit "ImportError", please test it with ubuntu system which is not inited from VM. @XuefeiW @willswl @ZhaoQiang2015
from open_nsfw.
Related Issues (20)
- python can't open classify_nsfw.py HOT 2
- Instructions to retrain the model with own image data set HOT 1
- there is a RuntimeError: Pickling of "caffe._caffe.Net" instances is not enabled (http://www.boost.org/libs/python/doc/v2/pickle.html) when I try run open_nsfw in multi-process HOT 4
- Some images marked as nsfw are wrong HOT 4
- Build error HOT 3
- cannot upload docker file HOT 2
- Segmentation fault when running classify_nsfw.py
- if or not we need to delete the weight_filter{} and bias_filter in the deploy.prototxt? HOT 3
- Docker Build failure: the url given returns 404 HOT 3
- Dataset production
- google.protobuf.internal : ModuleNotFoundError: No module named 'google'
- Give me some data for training :trollface:
- Python3 Support HOT 8
- My NSFW model
- Would anyone like to maintain this project? HOT 1
- Building docker image fails HOT 4
- ImportError: cannot import name main HOT 3
- not preloading model when started from node with child process HOT 1
- performance cpu vs gpu HOT 1
- Detached head during image building
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 open_nsfw.