Deploy network is missing a Softmax layer

让人想犯罪 __ 提交于 2019-12-02 04:23:34

问题


I try to use pretrained model (VGG 19) to DIGITS but I got this error.

ERROR: Your deploy network is missing a Softmax layer! Read the documentation for custom networks and/or look at the standard networks for examples

I try to test with my dataset which has only two classes.

I read this and this try to modify last layer but also I got error. How can I modify layers based on new dataset?

I try to modify the last layer and I got error

ERROR: Layer 'softmax' references bottom 'fc8' at the TRAIN stage however this blob is not included at that stage. Please consider using an include directive to limit the scope of this layer.


回答1:


You're having a problem because you're trying to upload a "train/val" network when you really need to be uploading an "all-in-one" network. Unfortunately, we don't document this very well. I've created an RFE to remind us to improve the documentation.

Try to adjust the last layers in your network to look something like this: https://github.com/NVIDIA/DIGITS/blob/v4.0.0/digits/standard-networks/caffe/lenet.prototxt#L162-L184

For more information, here is how I've proposed updating Caffe's example networks to all-in-one nets, and here is how I updated the default DIGITS networks to be all-in-one nets.



来源:https://stackoverflow.com/questions/40143901/deploy-network-is-missing-a-softmax-layer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!