Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

if or not we need to delete the weight_filter{} and bias_filter in the deploy.prototxt? #71

Open
yunhai0920 opened this issue Jun 4, 2018 · 3 comments

Comments

@yunhai0920
Copy link

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.

@TechnikEmpire
Copy link

@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?

@TechnikEmpire
Copy link

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.

BVLC/caffe#6275
Fix is BVLC/caffe#6278
Also here intel/caffe#219

@yunhai0920
Copy link
Author

yunhai0920 commented Jun 14, 2018

@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
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants