Closed Sumching closed 3 years ago
The length of learnable position embedding should be specified when it is initialized, so it is impossible to process images of other sizes. Is there any way to solve this problem?
Just change your img_size from the bash command --img_size [new_image_size]. The code will fit the length of learnable position embedding adaptively.
img_size
--img_size [new_image_size]
The length of learnable position embedding should be specified when it is initialized, so it is impossible to process images of other sizes. Is there any way to solve this problem?