It looks like you're new here. If you want to get involved, click one of these buttons!
Sign InIt looks like you're new here. If you want to get involved, click one of these buttons!
Hi guys,
I am trying to covert the SSD mobilenet in ncappzoo/caffe/SSD_MobileNet
I followed the instructions on git to finetune the model on my own data. Once I had the model I tried to compile it for movidius:
mvNCCompile -w mobilenet-ssd-deploy.caffemodel -s 12 MobileNetSSD_deploy.prototxt
but getting this:
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
[Error 17] Toolkit Error: Internal Error: Could not build graph. Missing link: conv11_mbox_conf
Do you have any idea why I am seeing this? When I check the prototxt it does have that layer but it has '_new' appended to it so it would be e.g. conv11_mbox_conf_new
I dont know why is it looking for conv11_mbox_conf when the prototxt has conv11_mbox_conf...
Thanks for your help!
Comments
The same issue.
@huxh10 I think the fix should be:
at line 86,
name[0:len(name) - 1]
works the same as line 85I found the cause. When mvNCCompile parses the caffe model, it builds a tree. But it only attaches the bottom blob and uses layer name as top blob. The compiler has logic to deal with renaming, while it fails in this condition.
My temporary solution is:
Then it works.
I manged to compile a ncs model with the solution above,
but when I run the model on Raspberry with NCS for detection, I got such ERROR:
@cweihang Can you provide your model files (caffemodel and prototxt) and your python script?
@Tome_at_Intel I follow this repository https://github.com/chuanqi305/MobileNet-SSD ,
- use gen_model.sh to create prototxt,
- use prototxt like MobileNetSSD_train_template.prototxt for training,
- usemerge_bn.py to generate a model without bn layer,
- and use this command to generate a ncs model:
and meet the ERROR in the question
and try to fix with this alia replacement
but fail to run the model with this Exception:
I met mvncStatus.MYRIAD_ERROR with the ncsdk in python2, after I reinstalled the sdk in python3, the runttime problem disappeared.
And it's really necessary for this fix in NetworkStage when your model contain layer named '*****_new':
@cweihang So you actually succeeded in deploying a finetuned SSD MobileNet on the NCS following these steps above? What FPS can you get?
Was anybody able to achieve the above? Let us know.
@cweihang At which line should i add these lines?
I got the same error mentioned and was fixed after editing /usr/local/bin/ncsdk/Models/NetworkStage.py as mentioned. I have a 4.5 fps for my custom object detection.
This has been very helpful!