We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76fc941 commit f2b930fCopy full SHA for f2b930f
src/datumaro/plugins/data_formats/yolo/importer.py
@@ -160,6 +160,15 @@ class _YoloUltralyticsImporter(_YoloLooseImporter):
160
META_FILE = YoloUltralyticsPath.META_FILE
161
FORMAT = YoloFormatType.yolo_ultralytics.name
162
163
+ @classmethod
164
+ def _check_ann_file_impl(cls, fp: TextIOWrapper) -> bool:
165
+ try:
166
+ return _YoloLooseImporter._check_ann_file_impl(fp)
167
+ except DatasetImportError as e:
168
+ if e.args[0] == "Empty file is not allowed.":
169
+ return True
170
+ raise
171
+
172
173
class YoloImporter(Importer):
174
SUB_IMPORTERS: Dict[YoloFormatType, Importer] = {
0 commit comments