Giter Club home page Giter Club logo

Comments (6)

XuefeiW avatar XuefeiW commented on June 5, 2024 3

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.

Caesar-Tang-X avatar Caesar-Tang-X commented on June 5, 2024

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.

Caesar-Tang-X avatar Caesar-Tang-X commented on June 5, 2024

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.

willswl avatar willswl commented on June 5, 2024

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.

ZhaoQiang2015 avatar ZhaoQiang2015 commented on June 5, 2024

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.

Caesar-Tang-X avatar Caesar-Tang-X commented on June 5, 2024

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)

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.