Skip to content

Commit

Permalink
Merge pull request #204 from Kwentar/patch-1
Browse files Browse the repository at this point in the history
Update rgb_image.py
  • Loading branch information
andrewilyas committed Feb 27, 2023
2 parents 6532710 + 3487682 commit 580cc95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffcv/fields/rgb_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def declare_state_and_memory(self, previous_state: State) -> Tuple[State, Alloca
min_height = heights.min()
min_width = widths.min()
if min_width != max_width or max_height != min_height:
msg = """SimpleRGBImageDecoder ony supports constant image,
msg = """SimpleRGBImageDecoder only supports constant image,
consider RandomResizedCropRGBImageDecoder or CenterCropRGBImageDecoder
instead."""
raise TypeError(msg)
Expand Down

0 comments on commit 580cc95

Please sign in to comment.