label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

empty txt file after exporting dataset with yolov8 format

Open bauerhartmut opened this issue 1 year ago • 1 comments

When I am try to export a Video dataset from label-studio using the yolov8 format I get an .zip file with the folders with one is named labels with an empty txt file in it. How can I solve this problem? I am updatet label-studio today but never made a video dataset earlier.

bauerhartmut avatar Sep 11 '24 09:09 bauerhartmut

Hi @bauerhartmut - we don't actually offer yolov8 export; our yolo export is intended for image datasets rather than video. What I'd recommend doing instead is exporting in json format, then converting the result to your intended format (though unfortunately, we don't offer any tools for this conversion just yet)

jombooth avatar Sep 17 '24 18:09 jombooth

Hi, @jombooth this actually happens also for images ( I tried Keypoint labelling)

edge7 avatar Oct 30 '24 15:10 edge7

Hi @bauerhartmut - we don't actually offer yolov8 export; our yolo export is intended for image datasets rather than video. What I'd recommend doing instead is exporting in json format, then converting the result to your intended format (though unfortunately, we don't offer any tools for this conversion just yet)

The UI offers the option of YOLOv8 OBB, but it also exports empty labels txt files.

image

ricardoianelli avatar Nov 04 '24 18:11 ricardoianelli

I'm having the same issue. Already invested quite a bit of effort into labeling videos for an object tracking project, assuming I could easily export the data due to the existence of the UI option.

jadler-13 avatar Jan 30 '25 07:01 jadler-13

I have the same issue with exporting Keypoint labels into YOLO format. txt files are empty. Can write a script to convert Label Studio json into YOLO txt files but would be nice to have this integrated into LS. Otherwise, I recommend deactivating the YOLO export of Keypoint labels for now to avoid user confusion!

HoseinHashemi avatar Feb 03 '25 05:02 HoseinHashemi

It would also be great if the UI had an option for exporting interpolated frames. I've written a script for this, and for the conversion to YOLO format, can't add them to this comment but will share if anyone is interested.

jadler-13 avatar Feb 03 '25 06:02 jadler-13

This has nothing to do with video, using normal images I also get empty label .txt files

JeremyMahieu avatar Feb 25 '25 20:02 JeremyMahieu

It would also be great if the UI had an option for exporting interpolated frames. I've written a script for this, and for the conversion to YOLO format, can't add them to this comment but will share if anyone is interested.

Hi, could you share this script, it would very helpful

GlebIsrailevich avatar Apr 01 '25 11:04 GlebIsrailevich