-
Notifications
You must be signed in to change notification settings - Fork 330
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
Update the GridMask layer to use BaseImageAugmentationLayer #237
Conversation
), | ||
gridblock - 1, | ||
grid_block - 1, | ||
), | ||
tf.int32, | ||
) | ||
|
||
for _ in range(2): | ||
start_x = tf.random.uniform( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this use _random_generator too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also - can we move compute mask to get_random_transformation or were there some sort of vectorization issues requiring it to be in the main func?
Moving GridMask to BaseImageAugmentationLayer is also being done in #159. And the implementation in also makes use of Auto vectorization however is not yet functional using BaseImageAugmentationLayer, and I am uncertain if it is possible for GridMask since it uses Let me know if #159 is still relevant or if I should close it in light of this PR. |
I see. I think your PR is nice since it further cleanup the cl for mask generation. Let me review your PR instead. |
Fix #190