From 57e78c90d8a0040e696df9c3e82b700511128584 Mon Sep 17 00:00:00 2001 From: Borys Tymchenko Date: Sun, 26 May 2024 16:48:03 +0300 Subject: [PATCH] fix __len__ --- .../datasets/detection_datasets/coco_format_detection.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/super_gradients/training/datasets/detection_datasets/coco_format_detection.py b/src/super_gradients/training/datasets/detection_datasets/coco_format_detection.py index da0d1c95f..06156ddc4 100644 --- a/src/super_gradients/training/datasets/detection_datasets/coco_format_detection.py +++ b/src/super_gradients/training/datasets/detection_datasets/coco_format_detection.py @@ -134,9 +134,6 @@ def _setup_data_source(self) -> int: else: return len(self._annotations) - def __len__(self) -> int: - return len(self._addr) if self.use_tensor_backed_storage else len(self._annotations) - @property def _all_classes(self) -> List[str]: return self.original_classes