User defined color in tf.image.resize_with_crop_or_pad #41272
Labels
comp:ops
OPs related issues
stat:awaiting tensorflower
Status - Awaiting response from tensorflower
type:feature
Feature requests
Please make sure that this is a feature request. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:feature_template
System information
Describe the feature and the current behavior/state.
Currently, the
tf.image.resize_with_crop_or_pad
ops pads with 0. It would be helpful to be able to give another value because in some application black is not the right color for padding (it messes with real data).Will this change the current api? How?
Adding a kwarg padding_color Union[int, iterable] with:
Example of how to achieve the expected result currently:
Who will benefit with this feature?
Users who need to pad images with another color because black is not suitable for their dataset
Any Other info.
The text was updated successfully, but these errors were encountered: