Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

fix: Handle multi-layer image in YOLO export #244

Closed
wants to merge 1 commit into from

Conversation

luuzk
Copy link

@luuzk luuzk commented Sep 15, 2023

Fix issue HumanSignal/label-studio#4783

Enable the YOLO export to handle images with multiple layers, i.e. a list of URLs instead of a single URL as value for data/image. In the multi-layer case, the filename of the first layer/image is assigned to the exported .txt label.

Since YOLO conversion currently downloads images, this mechanism is extended to download all layers of a multi-layer image.

@github-actions github-actions bot added the fix label Sep 15, 2023
@hogepodge
Copy link

@luuzk thanks for your pull request. I've moved this on to the engineering team to ask for review.

@niklub
Copy link
Contributor

niklub commented Jun 4, 2024

Thanks @luuzk , we will update the code with your suggested change and continue to work on updates in the label-studio-sdk repo. The fix will be rolled out in label-studio-sdk>=1. However, I think the code is not fully functionable in case of multi-page annotation, since you still have to relate each bounding box or polygon with the corresponding page or image item in the list. Feel free to submit your suggestions and further improvements here, appreciate your contribution!

@niklub niklub closed this Jun 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants