Skip to content

Commit

Permalink
fix "rbg" -> "rgb" in image_dataset_from_directory in field color_mod…
Browse files Browse the repository at this point in the history
…e in case of ValueError
  • Loading branch information
YoniChechik committed Aug 15, 2021
1 parent 8dc3e56 commit a23d4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/preprocessing/image_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def image_dataset_from_directory(directory,
num_channels = 1
else:
raise ValueError(
'`color_mode` must be one of {"rbg", "rgba", "grayscale"}. '
'`color_mode` must be one of {"rgb", "rgba", "grayscale"}. '
f'Received: color_mode={color_mode}')
interpolation = image_preprocessing.get_interpolation(interpolation)
dataset_utils.check_validation_split_arg(
Expand Down

0 comments on commit a23d4ed

Please sign in to comment.