New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check failed: outer_num_ * inner_num_ == bottom[1]->count() #15
Comments
You have to change label_shape the the dimensions of feature bin files. |
The dimensions of feature bin files are (19, 128, 256). F0911 21:38:15.349256 4092 softmax_loss_layer.cpp:47] Check failed: outer_num_ * inner_num_ == bottom[1]->count() (348480 vs. 327680) Number of labels must match number of predictions; e.g., if softmax axis == 1 and prediction shape is (N, C, H, W), label count (number of labels) must be N_H_W, with integer values in {0, 1, ..., C-1}. |
I am stuck at this point. After running train.py using:
these lines appears:
When i change the label_shape to 132 264, i get the following lines:
The output data size has changed curiously. What could be the reason for that? |
In the log, it says your bin size is 132 by 264. So if you set the label_shape to the same dimension, it should solve your problem. |
After I posted this, I noticed that the path between the both logs are different. Obviously the feature bin file generation did not run under the same conditions (for test and train). After i repeated the bin file generation (using test.py) the context training starts without errors. :) |
@Timo-hab Hello, I am trying to train the front-end model myself. But the vgg caffemodel downloaded from website is not fully convolutional. That's to say, the fc6 and fc7 are fully connected which leads to following shape mismatch problem Could do you tell me how you get the weight successfully loaded? |
I want to train the context module, but get the following error:
F0911 01:01:41.267956 15432 softmax_loss_layer.cpp:47] Check failed: outer_num_ * inner_num_ == bottom[1]->count() (3276800 vs. 435600) Number of labels must match number of predictions; e.g., if softmax axis == 1 and prediction shape is (N, C, H, W), label count (number of labels) must be N_H_W, with integer values in {0, 1, ..., C-1}.
I followed the documentation "training.md". First, i had trained the front-end module and than generated the .bin files from test.py (and the feats.txt).
I use the following to start the training:
I am grateful for every tip.
The text was updated successfully, but these errors were encountered: