Comments (8)
run command pip install scikit-image
from open_nsfw.
I used apt-get install and solved my problem. Run the following commands,
sudo apt-get install python-matplotlib python-numpy python-pil python-scipy
sudo apt-get install build-essential cython
sudo apt-get install python-skimage
from open_nsfw.
Thanks a lot @JeffreyYafeiHu , it worked 👍
from open_nsfw.
Thank you @JeffreyYafeiHu. it helped
from open_nsfw.
Hello
I also have problem. When I run this command
from skimage import io
io.use_plugin("pil", "imread")
img = io.imread("/Users/mymac/Downloads/image.png")
io.use_plugin("qt", "imshow")
io.imshow(img,fancy=True)
io.show()
I get the following error message:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-24-8355b47d9c39> in <module>()
----> 1 io.use_plugin("qt", "imshow")
2 io.imshow(img,fancy=True)
3 io.show()
/anaconda3/lib/python3.6/site-packages/skimage/io/manage_plugins.py in use_plugin(name, kind)
/anaconda3/lib/python3.6/site-packages/skimage/io/manage_plugins.py in _load(plugin)
ModuleNotFoundError: No module named 'skimage.io._plugins.qt_plugin'
from open_nsfw.
hi, I install docker and Build a caffe docker image sucessfully,
but is run the programm, it report the error.
please help me.root@iZ25q8sqgi7Z:~/open_nsfw# docker run caffe:cpu caffe --version
libdc1394 error: Failed to initialize libdc1394
caffe version 1.0.0-rc3root@iZ25q8sqgi7Z:~/open_nsfw# 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
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
直接
pip install scikit-image
from open_nsfw.
@qianjun1987 it helped ,thanks !
from open_nsfw.
hi
how install skimage on centos 7
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.