Skip to content

Commit

Permalink
Merge pull request #580 from DagsHub/bug/yolo-export
Browse files Browse the repository at this point in the history
Bug: Don't add "images" to the annotations for yolo export
  • Loading branch information
kbolashev authored Jan 9, 2025
2 parents 9e20311 + 68ff74e commit d37cd0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions dagshub/data_engine/model/query_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit d37cd0e

Please sign in to comment.