You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tuned a pre trained SqueezNet Caffe Model using DIGITS. Everything seems to work fine except when I try to classify an image through DIGITS I get the following error:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/share/digits/digits/model/images/classification/views.py", line 291, in image_classification_model_classify_one
predictions, visualizations = job.train_task().infer_one(image, snapshot_epoch=epoch, layers=layers)
File "/usr/share/digits/digits/model/tasks/caffe_train.py", line 1018, in infer_one
layers=layers,
File "/usr/share/digits/digits/model/tasks/caffe_train.py", line 1063, in classify_one
predictions.append( (labels[i], scores[i]) )
IndexError: list index out of range
The same data DB works fine with AlextNet, however it fails to classify through DIGITS for this new retrained model:
If I'm not mistaken, I believe this is related to the same issue as reported in #1492, for which a solution was proposed in pull request #1536.
The core issue is that SqueezeNet is a fully convolutional network, with a pooling layer feeding into the softmax operator, instead of using a fully connected layer at the end like AlexNet. That leads to a different dimensionality in that last layer, which causes the DIGITS classification view to have problems. That pull request seemed to fix the issue for me when I tried it.
I have tuned a pre trained SqueezNet Caffe Model using DIGITS. Everything seems to work fine except when I try to classify an image through DIGITS I get the following error:
The same data DB works fine with AlextNet, however it fails to classify through DIGITS for this new retrained model:
The text was updated successfully, but these errors were encountered: