-
Notifications
You must be signed in to change notification settings - Fork 19.6k
keras.layers.RandomGrayscale can't be put in as part of image augmentation layer #21268
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
The below code works for me. After fixing some bug for passing single unbatched image in RandomGrayscale.call
|
Thank you! it works! Also, final bit of change to make model.fit work: def __init__(self, name=None):
# Change the layer name to remove the space
super().__init__(name='DataAugmentation') |
this is giving error
whereas if we use the Subclassing based technique, it works
Output:
|
Why is it that other keras image preprocessing layers not causing cycle, whereas random_grayscale causing cycle? |
Hi all,
When I build the model with RandomGrayscale in my image augmentation layers it gives the following error:
The code I use to build the model:
Best,
The text was updated successfully, but these errors were encountered: