From b29ba6c1b9e821fcae5e0de448ac054075cec2be Mon Sep 17 00:00:00 2001 From: Antoine Poupon Date: Sat, 7 Jun 2025 13:35:04 +0200 Subject: [PATCH] keep the info field as it is now required by some pycocotools functions --- yolox/data/datasets/coco.py | 1 - 1 file changed, 1 deletion(-) diff --git a/yolox/data/datasets/coco.py b/yolox/data/datasets/coco.py index 8d19047a2..58cc999bd 100644 --- a/yolox/data/datasets/coco.py +++ b/yolox/data/datasets/coco.py @@ -19,7 +19,6 @@ def remove_useless_info(coco): """ if isinstance(coco, COCO): dataset = coco.dataset - dataset.pop("info", None) dataset.pop("licenses", None) for img in dataset["images"]: img.pop("license", None)