Closed andreped closed 1 year ago
That is weird cuz I tried with different input shapes before and even trained models. I think this is either due to change of recent updates of TensorFlow version change.
@andreped Hi, just set resize_query=True
during model build, and it will support any input size =)
@andreped Hi, just set
resize_query=True
during model build, and it will support any input size =)
@awsaf49 Setting resize_query=True
indeed resolves the issue! At least the training launched. Cheers :]
Sorry for the late reply. Been on vacation, and have not had the time to return this this issue until now.
Is your feature request related to a problem? Please describe. Most, if not all, Keras network architectures support changing the input size. This is also true for the ViT-B/16 implementation found in the vit-keras project. When trying to do the same with this implementation, it fails.
Describe the solution you'd like I dont expect "any" input shape to work, but it would be great if it was possible to change it, which works well with other architecture backbone implementations out there.
Additional context A part of the error message can be seen here:
I tried to change from
224x224
to1024x1024
input size.