Skip to content

Commit

Permalink
Fix MultiCropTransform crop_max_scales check (#1454)
Browse files Browse the repository at this point in the history
* Fix crop_max_scales check
  • Loading branch information
guarin authored Dec 13, 2023
1 parent 7cf2970 commit 0802550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightly/transforms/multi_crop_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def __init__(
"Length of crop_sizes and crop_min_scales must be equal but are"
f" {len(crop_sizes)} and {len(crop_min_scales)}."
)
if len(crop_sizes) != len(crop_min_scales):
if len(crop_sizes) != len(crop_max_scales):
raise ValueError(
"Length of crop_sizes and crop_max_scales must be equal but are"
f" {len(crop_sizes)} and {len(crop_min_scales)}."
f" {len(crop_sizes)} and {len(crop_max_scales)}."
)

crop_transforms = []
Expand Down

0 comments on commit 0802550

Please sign in to comment.