yahoo / open_nsfw

Not Suitable for Work (NSFW) classification using deep neural network Caffe models.
BSD 2-Clause "Simplified" License
5.87k stars 1.05k forks source link

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

Open laowu8615 opened 7 years ago

laowu8615 commented 7 years ago

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 ',

OuIChien commented 7 years ago

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

laowu8615 commented 7 years ago

remove ./,then the error is also existing

AlphaGarden commented 6 years ago

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

FAHADSUST commented 6 years ago

I am facing same problem. Does anybody solve this?

bondeg commented 5 years ago

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