We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test
1 parent 539228b commit 797d3eaCopy full SHA for 797d3ea
luxonis_ml/data/parsers/coco_parser.py
@@ -162,7 +162,12 @@ def from_dir(
162
image_dir=val_paths["image_dir"], annotation_path=val_ann_path
163
)
164
165
- if split_val_to_test and dir_format == Format.FIFTYONE:
+ if split_val_to_test or len(splits) < 3:
166
+ if not split_val_to_test:
167
+ logger.warning(
168
+ "Splitting validation set into validation and test sets, "
169
+ "as no test split is present in the dataset."
170
+ )
171
split_point = round(len(_added_val_imgs) * 0.5)
172
added_val_imgs = _added_val_imgs[:split_point]
173
added_test_imgs = _added_val_imgs[split_point:]
0 commit comments