From e2fa0b210d95f0fb2d5af863246984f5f0de1065 Mon Sep 17 00:00:00 2001 From: sooahleex Date: Wed, 25 Sep 2024 17:16:04 +0900 Subject: [PATCH] Update detect func --- src/datumaro/plugins/data_formats/kitti_3d/importer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/datumaro/plugins/data_formats/kitti_3d/importer.py b/src/datumaro/plugins/data_formats/kitti_3d/importer.py index af249a08e9..2840218af7 100644 --- a/src/datumaro/plugins/data_formats/kitti_3d/importer.py +++ b/src/datumaro/plugins/data_formats/kitti_3d/importer.py @@ -17,6 +17,7 @@ class Kitti3dImporter(Importer): @classmethod def detect(cls, context: FormatDetectionContext) -> FormatDetectionConfidence: + context.require_file(f"{Kitti3dPath.CALIB_DIR}/*.txt") cls._check_ann_file(context.require_file(f"{Kitti3dPath.LABEL_DIR}/*.txt"), context) return FormatDetectionConfidence.MEDIUM