-
Notifications
You must be signed in to change notification settings - Fork 334
RandomCrop bugs #860
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
Comments
Yes for # 1 it is an edge case of As your image in the colab cell is tf.Tensor([372 512 3], shape=(3,), dtype=int32) With random_crop = tf.keras.layers.RandomCrop(height=128, width=513) You are going to have a |
For # 2 I don't understand well the logic of using rands = self._random_generator.random_uniform([2], 0, dtype.max, dtype) |
Thank you Martin for the bug report! |
Thanks for reporting the issue! We have consolidated the development of KerasCV into the new KerasHub package, which supports image, text, and multi-modal models. Please read the announcement.
With our focus shifted to KerasHub, we are not planning any further development or releases in KerasCV. If you encounter a KerasCV feature that is missing from KerasHub, or would like to propose an addition to the library, please file an issue with KerasHub. |
Repro Colab here
Input image size: 360*512px
Problem #1: cropping to 128x513 crashes with a div by 0
Problem #2: cropping to 128x514 no longer produces random results (there are still many possible random positions along the Y axis)
The text was updated successfully, but these errors were encountered: