SkalskiP / make-sense

Free to use online tool for labelling photos. https://makesense.ai
GNU General Public License v3.0
3.12k stars 514 forks source link

Unexpected error coming up when I try to import an annotation with only one label in it #296

Open JorgTV opened 1 year ago

JorgTV commented 1 year ago

Describe the bug Can't import annotations when it's only 1 label that needs to be imported (unexpected error)

To Reproduce Steps to reproduce the behavior:

  1. Create a project and only create one label
  2. Train a few pictures with that one label
  3. Save the labels in YOLO Format
  4. Create a new project
  5. Import the annotations with only 1 label in the labels.txt file
  6. Bug is reproduced

Expected behavior It should import the annotations, just like it does when there are multiple labels

Screenshots https://i.imgur.com/jfM3FXp.png

Desktop (please complete the following information):

Additional context It only throws this error when I try importing images with only 1 label, when there are mutiple labels (tried with 2) it works just fine. Thanks for reading!

github-actions[bot] commented 1 year ago

👋 Hello @JorgTV, 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 8.x.x and node.js v16.x.x versions are required. More information about this problem is available in the #16 issue.

SkalskiP commented 1 year ago

Hello, @JorgTV 👋🏻! I'm super happy to take a look. Would that be possible that you'd share with me some minimal examples I could reproduce locally? label.txt + 101.jpg + 101.txt? You can attach them here or send them over email.

JorgTV commented 1 year ago

The problem seems to have solved itself, I will still upload the files though for you to test if it works out. 101 101.txt labels.txt

sidb236 commented 3 months ago

I am facing issue in uploading yolo annotations as well. I am uploading multiple annotation files along with the labels.txt as well. image The error in my case is unexpected error during the parsing of the img's annotation file. Please help!