make-sense icon indicating copy to clipboard operation
make-sense copied to clipboard

Exporting in YOLO format with new labels doesn't include labels.txt in the zip file

Open noatamir opened this issue 3 years ago • 3 comments

Describe the bug After modifying the annotations/labels for image(s) loaded in YOLO format. We exported them. In the process, new label(s) were added to the project. We noticed that the zip file only include the .txt files for each image, and not a new label.txt file with the new label names. This would mean we need to ask folks to manually generate the labels.txt file, which is error-prone.

To Reproduce Steps to reproduce the behavior:

  1. Load images and annotation to a project
  2. Add a new label anywhere in on an image
  3. Go to Export Annotation -> A zip package containing files in YOLO format
  4. Unzip the zip files -> there is a .txt file for each image. They have an integer representing the new label, but we don't have a new label.txt file with the name of the new label for this model.

Expected behavior If a new label(s) have been added, the zip file resulting from exported YOLO format should contain the labels.txt file with the new list of labels.

This might also be true if a certain label has been completely removed from the list, causing the list to be reordered. It should be "easy" to reload the exported YOLO format back into our model.

noatamir avatar Oct 19 '22 11:10 noatamir

👋 Hello @noatamir, thank you for your interest in make-sense - free to use online tool for labelling photos! 🏷️

🐞 Bug reports

If you noticed that make-sense is not working properly, please provide us with as much information as possible. To make your life easier, we have prepared a bug report template containing all the relevant details. We know, we ask for a lot... However, please believe that knowing all that extra information - like the type of browser you use or the version of node you have installed - really helps us to solve your problems faster and more efficiently. 😉

💬 Get in touch

If you've been trying to contact us but for some reason we haven't responded to your issue yet, don't hesitate to get back to us on Gitter or Twitter.

💻 Local setup

# clone repository
git clone https://github.com/SkalskiP/make-sense.git

# navigate to main dir
cd make-sense

# install dependencies
npm install

# serve with hot reload at localhost:3000
npm start

To ensure proper functionality of the application locally, an npm 6.x.x and node.js v12.x.x versions are required. More information about this problem is available in the #16 issue.

github-actions[bot] avatar Oct 19 '22 11:10 github-actions[bot]

Hi, @noatamir 👋! Thank you for your interest in Make Sense! I agree. We need to allow users to export .txt file with a class list. Let me try to evaluate how much work we will need to add this functionality. I want to:

  • Inculcate labels.txt inside .zip file
  • Allow for download of labels.txt from Edit labels popup

SkalskiP avatar Oct 19 '22 17:10 SkalskiP

Any progress regarding this little but very important detail..??

Halvani avatar Jun 28 '23 10:06 Halvani