-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Problem training on MSCOCO #9
Comments
2&3. Can you check you prepare code? The shape of your
|
Thank you for your fast response. Indeed, for some reason my subset.features has a different size. I don't see why though. You set rng(1) so the randomization should not be a problem. For a sanity check, can you tell me what you obtain if you do:
In any case, I changed the dictionary size (d) in
(second line is the size of the first convolutional layer in the text cnn, so that it matches the new dictionary). The FILTERS depth does not divide the DATA depth. Error in dagnn.Conv/forward (line 12) Error in dagnn.Layer/forwardAdvanced (line 85) Error in dagnn.DagNN/eval (line 91) Error in cnn_train_dag>processEpoch (line 222) Error in cnn_train_dag (line 90) Error in train_coco_word2_1_pool (line 42) Error in run (line 91) I am still working on finding this particular filter with mismatched size, but if you have any clue where it could be I'd highly appreciate the hint. Thank you very much for your time! |
Solved. But I still wonder why the dictionaries are different. You should maybe share your own dictionary together with the pre-trained model, because otherwise people will not be able to use them. |
Thank you @lascavana . Sure. This is the link for the dictionary files. |
I am trying to train the model on MSCOCO and run into the following issues:
1- When running 'train_coco_word2_1_pool.m' as you suggest, I get the error that the function 'coco_word2_pool_no_w2v' does not exist.
2- I therefore changed it for 'coco_word2_pool' since this function is indeed in the directory (is this what you meant?). Then I get the following error:
_Error using reshape
To RESHAPE the number of elements must not change.
Error in coco_word2_pool (line 273)
net.params(first).value = reshape(single(subset.features'),1,1,29972,300);
Error in train_coco_word2_1_pool (line 17)
net = coco_word2_pool();_
3- I experience the same issue when running 'train_coco_word2_1_pool_vgg19.m'
4- The reason that I am training is that I want to reproduce your results but the 20 epochs in your pretrained model don't seem to be enough. Are these the parameters that you used to report test results?
I am running the code on a MacBook Pro, on Matlab R2018b.
Thank you in advance.
The text was updated successfully, but these errors were encountered: