-
Notifications
You must be signed in to change notification settings - Fork 124
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
Assertion Error (using images of a different size) #4
Comments
I have tried in on different sizes as well without any issues. The important part is that the flow is being rescaled, just like in the official implementation. Line 328 in 9cf1e29
|
I am afraid that I a little bit confused. It says |
For anyone who faces the same issue, commenting the lines restricting the size can solve the issue. Thanks !! |
I wouldn't necessarily call it an issue though, it is more like an acknowledgement. |
in fact, I used inputs with same size and got size mismatch problem in the middle of the network. File "/home/wangxinrui/bbox_net/flow_net.py", line 104, in forward |
Would you mind sharing the images that cause this error? If not, what is their resolution? |
I tested again and found 224224 resolution caused this problem while 256256 worked well. I guess the image resolution should be divided by 64. |
I am not exactly sure what happened in your case, see the following excerpt. Line 311 in e76ece2
Which ensures that the resolution is divisible by 64 and resizes 224x224 to 256x256 accordingly. |
It seems like using images with a different size throws this error. I would like to double check that modifying that part of the code to make it accept images with other size will not create an issue in calculating the flow. Also. if there is any specific part of the code I need to be careful with when modifying.
Thank you
The text was updated successfully, but these errors were encountered: