From 0802550934776855a9cb7b87b64dbeb2ad6fb290 Mon Sep 17 00:00:00 2001 From: guarin <43336610+guarin@users.noreply.github.com> Date: Wed, 13 Dec 2023 13:53:30 +0100 Subject: [PATCH] Fix MultiCropTransform crop_max_scales check (#1454) * Fix crop_max_scales check --- lightly/transforms/multi_crop_transform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = []