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 @ternaus & @edgarriba JPEG performs coding based on 8 x 8 patches. As we downsample the chroma by a factor of two this corresponds to a patch size of 16 x 16 w.r.t. the original image. So the input image dimensions must be devisable by 16. I would consider padding the image, performing JPEG coding, and clipping the image again. @edgarriba we could also add this to the differentiable JPEG implementation if you like.
Describe the bug
RandomJPEG does fails if sides are not divisible by 16
Reproduction steps
Additional context
No response
The text was updated successfully, but these errors were encountered: