diff --git a/lightly/transforms/multi_crop_transform.py b/lightly/transforms/multi_crop_transform.py index 2e546b22f..49c63229b 100644 --- a/lightly/transforms/multi_crop_transform.py +++ b/lightly/transforms/multi_crop_transform.py @@ -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 = []