You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Sorry to bother you, and thank you for your great work! I find your research really meaningful and impactful. I have encountered a small issue while running the code and would appreciate your help.
I am running the code with the cub_all dataset and default setting height=11 and width=9. However, I encountered the following error during the evaluate phase in the visualize_attn_maps function:
RuntimeError: shape '[100, -1]' is invalid for input of size 1980
The error occurs in the visualize.py file at the following line:
StableKeypoints-main/unsupervised_keypoints/visualize.py", line 255, in visualize_attn_maps
est_points = ((points.view(num_images, -1)-0.5) @ regressor)+0.5
The error happens during the evaluate phase when visualizing the attention maps using the visualize_attn_maps function.
I’m using the cub_all dataset, and I’ve set height=11 and width=9, but this causes the RuntimeError due to shape incompatibility.
It seems that the issue is related to reshaping the points tensor (via view(num_images, -1)) in the code, and this mismatch might be due to the specific size of the cub_all dataset.
Is there an official setting or configuration for height and width that resolves this issue, particularly for the cub_all dataset? Could you recommend the correct values to use?
The text was updated successfully, but these errors were encountered:
If it is points.view(num_images, -1) this might be because the total number of elements in the tensor might not be divisible by num_images. Can you pass in num_images=99 since your height and width are 9x11? It would have been simpler not to require that argument from a simplicity standpoint.
If not it could also be due to regressor not being the expected shape. Could you print the shapes going into that line?
Hi,Thank you for your response and suggestions! I tried modifying the settings to height=2 and width=50, and with these changes, the code runs successfully. It seems the default settings were causing the issue.
For additional context, the shape of the regressor tensor is (20, 30) in my case.
Would you say that this modification is an acceptable solution for using the cub_all dataset, or do you recommend any other specific settings to ensure optimal results?
Thank you again for your time and help!
Hi,
Sorry to bother you, and thank you for your great work! I find your research really meaningful and impactful. I have encountered a small issue while running the code and would appreciate your help.
I am running the code with the cub_all dataset and default setting height=11 and width=9. However, I encountered the following error during the evaluate phase in the visualize_attn_maps function:
The error happens during the evaluate phase when visualizing the attention maps using the visualize_attn_maps function.
I’m using the cub_all dataset, and I’ve set height=11 and width=9, but this causes the RuntimeError due to shape incompatibility.
It seems that the issue is related to reshaping the points tensor (via view(num_images, -1)) in the code, and this mismatch might be due to the specific size of the cub_all dataset.
Is there an official setting or configuration for height and width that resolves this issue, particularly for the cub_all dataset? Could you recommend the correct values to use?
The text was updated successfully, but these errors were encountered: