From 1c560411f6dbf3a0afaee800943dec61f474da95 Mon Sep 17 00:00:00 2001 From: KBolashev Date: Thu, 9 Jan 2025 13:45:13 +0200 Subject: [PATCH 1/2] Don't add "images" to the annotations for yolo export --- dagshub/data_engine/model/query_result.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dagshub/data_engine/model/query_result.py b/dagshub/data_engine/model/query_result.py index 061e6c80..39f2f9a0 100644 --- a/dagshub/data_engine/model/query_result.py +++ b/dagshub/data_engine/model/query_result.py @@ -752,8 +752,6 @@ def export_as_yolo( # If there's no folder "images" in the datasource, prepend it to the path if not any("images/" in ann.filename for ann in annotations): - for ann in annotations: - ann.filename = os.path.join("images", ann.filename) image_download_path = Path(download_dir) / "images" context = YoloContext(annotation_type=annotation_type, categories=categories) From 68ff74eff10698cf23980177cfd41d51fc5274b7 Mon Sep 17 00:00:00 2001 From: KBolashev Date: Thu, 9 Jan 2025 13:47:41 +0200 Subject: [PATCH 2/2] Bump annotation converter dependency version to >=0.1.3 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index eff63646..8b529ecc 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ def get_version(rel_path: str) -> str: "python-dateutil", "boto3", "semver", - "dagshub-annotation-converter>=0.1.0", + "dagshub-annotation-converter>=0.1.3", ] extras_require = {