Skip to content

tf.keras.layers.experimental.preprocessing.RandomXXX API is missing "nearest" as an option for fill_mode. #39177

@kechan

Description

@kechan

System information

  • TensorFlow version (you are using): 2.2.0-dev20200504
  • Are you willing to contribute it (Yes/No): Yes (but really depends on the technicality)

Describe the feature and the current behavior/state.
tf.keras.layers.experimental.preprocessing.RandomTranslation's argument "fill_mode" should accept the value of "nearest". This should be available to all relevant data augmentation experimental API that will inherit from Layer. fill_mode of "nearest" is the default for tf.keras.preprocessing.image.ImageDataGenerator.

Will this change the current api? How?
This is about adding an extra fill_mode option for "nearest". It should be there since this is the default for the older Keras API (for data augmentation). This will allow apple to apple comparison to reproduce results.

Who will benefit with this feature?

Any Other info.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions