Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5856 Discussions

FileNotFoundError: [Errno 2] No such file or directory: '../../caffe/SSD_MobileNet/graph'

Community Manager

Hello! ……. I'm not sure what is going on here, error below:


I tried making the graph with MVCNCCompile, but that failed due to 'list index out of range'.


Please help! …… Thanks.


` pi@raspberrypi:~ $ cd /home/pi/ncappzoo/apps/security-cam


pi@raspberrypi:~/ncappzoo/apps/security-cam $ make run


================================================================ Making MobileNet SSD... make[1]: Entering directory '/home/pi/ncappzoo/caffe/SSD_MobileNet' making caffemodel caffemodel already exists, skipping download. making prototxt Prototxt file already exists, skipping download. if [ -e ] ; \ then \ echo " already exists. skipping download."; \ else \ echo ""; \ echo "Attempting download of from this url: "; \ echo ""; \ wget -P .; \ python3 --model deploy.prototxt --weight mobilenet_iter_73000.caffemodel; \ fi; \ already exists. skipping download. making compile mvNCCompile v02.00, Copyright @ Movidius Ltd 2016 /usr/lib/python3/dist-packages/scipy/_lib/ DeprecationWarning: Importing from numpy.testing.nosetester is deprecated, import from numpy.testing instead. from numpy.testing.nosetester import import_nose /usr/lib/python3/dist-packages/scipy/stats/ DeprecationWarning: Importing from numpy.testing.decorators is deprecated, import from numpy.testing instead. from numpy.testing.decorators import setastest [Error 9] Argument Error: Network weight cannot be found. make[1]: Leaving directory '/home/pi/ncappzoo/caffe/SSD_MobileNet' Done! See ../../caffe/SSD_MobileNet/graph. ================================================================ Running python3 --video 0 Traceback (most recent call last): File "", line 219, in <module> main() File "", line 152, in main graph = load_graph( device ) File "", line 57, in load_graph with open( ARGS.graph, mode='rb' ) as f: FileNotFoundError: [Errno 2] No such file or directory: '../../caffe/SSD_MobileNet/graph' Makefile:18: recipe for target 'run' failed make: *** [run] Error 1 pi@raspberrypi:~/ncappzoo/apps/security-cam $ `
0 Kudos
3 Replies
Community Manager

Hi @TegwynTwmffat


I believe you installed the NCSDK in API-only mode on your Raspberry PI. If that is the case, you will need to copy the graph from a development machine with the full SDK installed.


Take a look at section Bonus step: Deploying a pre-compiled graph file after step 3 in the following guide:


Hope this helps!




Community Manager

I've got this installed: mvNCCompile v02.00, Copyright @ Movidius Ltd 2016


…. Is that not in the SDK rather than the API ???


I tried to use the mvNCCompile v02.00, Copyright @ Movidius Ltd 2016 to create a graph but it failed. I'd like to have it working if possible.


I posted another thread on that error.


I found a suitable graph file, thanks, please could you confirm I have SDK installed and maybe answer my other thread question?


Thanks !!!


To get rid of this error you can try using Python file exists methods to check that at least python sees the file exists or not. In other words, you can make sure that the user has indeed typed a correct path for a real existing file. If the user does not pass the full path to the file, the path is interpreted relatively to the current working directory. The current working directory usually is the directory in which you started the program.