yahoo / open_nsfw

Not Suitable for Work (NSFW) classification using deep neural network Caffe models.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python:can't open file './calssify_nsfw.py':[Errno 2]No such file or directory

laowu8615 opened this issue · comments

I use the windows system, based on the docker installed caffe, I switch to the "open_nsfw-master" folder, when I execute the following statement, the error is "python:can't open file './classify_nsfw.py':[Errno 2]No such file or directory",but the file is real in my folder,why?
'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.jpg ',

remove ./
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.jpg

remove ./,then the error is also existing

commented

Then how to work it out? Does anybody have a solution for this?

I am facing same problem. Does anybody solve this?

commented

Just make sure that you clone this repo and now in directory with it.