Open yunhai0920 opened 6 years ago
@yunhai0920 I saw on another website you had run into the following issue with this model:
Check failed: axis_index < num_axes() (1 vs. 1) axis 1 out of range for 1-D Blob with shape 2 (2)
Sorry to hijack your question, but what was your solution to this problem?
Nevermind, the problem is all the crazy forking of Caffe and people not keeping their forks in sync.
This bug will cause OpenNSFW not to work, FYI.
https://github.com/BVLC/caffe/issues/6275 Fix is https://github.com/BVLC/caffe/pull/6278 Also here https://github.com/intel/caffe/issues/219
@TechnikEmpire because of the different versions of caffe, you can try to chang the input format: name: "ResNet_50_1by2_nsfw" layer { name: "data" type: "Input" top: "data" input_param { shape: { dim: 1 dim: 3 dim: 224 dim: 224 } } } vs name: "ResNet_50_1by2_nsfw" input: "data" input_shape { dim: 1 dim: 3 dim: 224 dim: 224 }
if or not we need to delete the weight_filter{} and bias_filter{} in the deploy.prototxt? because during the test phase, the caffe.model will provide the named parameters, here not need to update itself.