From 9e984a56d60522f90d3e145bbaf96b83caf5870f Mon Sep 17 00:00:00 2001 From: Mansi Mehta Date: Wed, 22 Jan 2025 20:28:32 +0530 Subject: [PATCH 1/2] Update fill_mode argument default value in RansdomZoom class --- .../src/layers/preprocessing/image_preprocessing/random_zoom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras/src/layers/preprocessing/image_preprocessing/random_zoom.py b/keras/src/layers/preprocessing/image_preprocessing/random_zoom.py index 80b29b8e6ad3..e397fd9e75e8 100644 --- a/keras/src/layers/preprocessing/image_preprocessing/random_zoom.py +++ b/keras/src/layers/preprocessing/image_preprocessing/random_zoom.py @@ -109,7 +109,7 @@ def __init__( self, height_factor, width_factor=None, - fill_mode="reflect", + fill_mode="constant", interpolation="bilinear", seed=None, fill_value=0.0, From 59fe50f677b2d458590949f848809a244f9ea2ed Mon Sep 17 00:00:00 2001 From: Mansi Mehta Date: Thu, 23 Jan 2025 10:48:24 +0530 Subject: [PATCH 2/2] Update fill_mode argument default value in RansdomZoom document --- .../layers/preprocessing/image_preprocessing/random_zoom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keras/src/layers/preprocessing/image_preprocessing/random_zoom.py b/keras/src/layers/preprocessing/image_preprocessing/random_zoom.py index e397fd9e75e8..4842065a8842 100644 --- a/keras/src/layers/preprocessing/image_preprocessing/random_zoom.py +++ b/keras/src/layers/preprocessing/image_preprocessing/random_zoom.py @@ -58,7 +58,7 @@ class RandomZoom(BaseImagePreprocessingLayer): directions by preserving the aspect ratio. Defaults to `None`. fill_mode: Points outside the boundaries of the input are filled according to the given mode. Available methods are `"constant"`, - `"nearest"`, `"wrap"` and `"reflect"`. Defaults to `"constant"`. + `"nearest"`, `"wrap"` and `"reflect"`. Defaults to `"reflect"`. - `"reflect"`: `(d c b a | a b c d | d c b a)` The input is extended by reflecting about the edge of the last pixel. @@ -109,7 +109,7 @@ def __init__( self, height_factor, width_factor=None, - fill_mode="constant", + fill_mode="reflect", interpolation="bilinear", seed=None, fill_value=0.0,