-
Notifications
You must be signed in to change notification settings - Fork 72
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
bcnn_finetuning.py run error #9
Comments
I have understood, I was wrong. Thank you very much. |
Same Issue with me. I changed images to 224 instead of 448. |
@rnsandeep ,Thank you for your replay. I will follow your advice. Thanks again! |
@rnsandeep @Hedlen Hi, I also meet the same issue and your answers solve it. However, I still have two questions:
Cheers |
@YanShuo1992 I can tell for multiples of 224. if you make your image 112 i.e. 224/2 it should be 49( 196/4). if you make it 448 (224x2) it should be 196*4( 784). Not sure about every size. |
@rnsandeep my image is 720720. I find you can output the shape of the conv5_3. It is (?, 512,14,14) when the image size is 224. You can simply store the shape of the conv5_3 as s and replace the 196 with ss. |
In bcnn_finetuning.py--> for i in range(total_val_batch): <-- have occured error.It's undefine name. |
When I run the bcnn_finetuning.py,and the following error occurs.My category is 134 classes.
InvalidArgumentError (see above for traceback): logits and labels must be same size: logits_size=[4,134] labels_size=[16,134] [[Node: SoftmaxCrossEntropyWithLogitsSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, _device="/job:loc alhost/replica:0/task:0/gpu:0"](Reshape_2, Reshape_3)]]
logits_size and labels_size are not equal.
I don't know why this happens. I'm running exactly as you follow your code.
Please help me solve this problem.
Thank you very much!
The text was updated successfully, but these errors were encountered: