Root @ 1460 a0e00f8b:/home/yuanshuai/snpe/snpe - 1.23.1.245 # ls ~/tmpdir/
Bvlc_alexnet. Caffemodel caffe_ilsvrc12. Tar. Gz. Deploy prototxt
Root @ 1460 a0e00f8b:/home/yuanshuai snpe/snpe - 1.23.1.245 # python./models/alexnet/scripts/setup_alexnet py - a/root/tmpdir/
Copying Caffe model
Modiying prototxt to use a batch size of 1
Creating DLC
Before the create call
[' snpe - caffe - to - DLC ', '- caffe_txt', '/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/caffe/deploy_batch_1 prototxt', '- caffe_bin', '/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/caffe/bvlc_alexnet caffemodel', '- DLC', '/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/DLC/bvlc_alexnet DLC']
Snpe - caffe - to - DLC - caffe_txt/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/caffe/deploy_batch_1 prototxt - caffe_bin/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/caffe/bvlc_alexnet caffemodel - DLC/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/DLC/bvlc_alexnet DLC
ERROR: [2] Errno No to the file or directory
CodePudding user response:
Root @ 1460 a0e00f8b:/home/yuanshuai/snpe/snpe - 1.23.1.245 # ls ~/tmpdir/
Bvlc_alexnet. Caffemodel caffe_ilsvrc12. Tar. Gz. Deploy prototxt
Root @ 1460 a0e00f8b:/home/yuanshuai snpe/snpe - 1.23.1.245 # python./models/alexnet/scripts/setup_alexnet py - a/root/tmpdir/
Copying Caffe model
Modiying prototxt to use a batch size of 1
Creating DLC
Before the create call
[' snpe - caffe - to - DLC ', '- caffe_txt', '/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/caffe/deploy_batch_1 prototxt', '- caffe_bin', '/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/caffe/bvlc_alexnet caffemodel', '- DLC', '/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/DLC/bvlc_alexnet DLC']
Snpe - caffe - to - DLC - caffe_txt/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/caffe/deploy_batch_1 prototxt - caffe_bin/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/caffe/bvlc_alexnet caffemodel - DLC/home/yuanshuai/snpe/snpe - 1.23.1.245/models/alexnet/DLC/bvlc_alexnet DLC
ERROR: No [Errno 2] to a file or directory
CodePudding user response:
Fixed refer:The Convert AlexNet DLC failed - Qualcomm Developer Network
https://developer.qualcomm.com/forum/qdn-forums/software/qualcomm-neural-processing-sdk/66715
CodePudding user response:
Although has in the past for a long time, for the people in the later also encountered the same problem and entered the watch:Error message is the file does not exist, actually say this file is not a caffe, but SNPE SDK Model Converter script SNPE - caffe - to - DLC,
The solution is to set up the PYTHONPATH environment variable, the export PYTHONPATH=$SNPE_ROOT/bin//x86_64 - Linux - clang/: $PATH, where $SNPE_ROOT is the root directory of your SDK
CodePudding user response:
This it will download the Caffe related a few model, and then load a dynamic library to generate the DLC files, website has the teaching process, Suggestions according to the process go first, look at the script error on the window, where,