SkalskiP / make-sense

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

How can I import annotations? #222

Closed PIjarihd closed 2 years ago

PIjarihd commented 2 years ago

I tried to load the existing annotations for YOLO. However, I got the following error. image How should I load them. I want to edit the labels (to be more specific, add more labels)

github-actions[bot] commented 2 years ago

👋 Hello @PIjarihd, 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.

SkalskiP commented 2 years ago

Hello @PIjarihd 👋 ! I know the annotation loading process should be more straightforward. This is one of our goals for this year. In the meantime, I will try to help you. From the screenshot, I assume you will be uploading labels in YOLO format.

  1. Load images. For the sake of the example, let us assume that the images have the following names:
  1. Load annotations. In YOLO format, each image should have an associated annotations file. The name of the annotation file must be the same as the image name, except that the annotation file must have txt extension. So in ou example, we would have following annotations files:

In addition, we need to provide one more file - labels.txt. This file contains object class names separated by newline characters. Here's an example for COCO dataset:

person
bicycle
car
motorcycle
airplane
bus
train
truck
boat
traffic light
fire hydrant
stop sign
parking meter
bench
bird
cat
dog
horse
sheep
cow
elephant
bear
zebra
giraffe
backpack
umbrella
handbag
tie
suitcase
frisbee
skis
snowboard
sports ball
kite
baseball bat
baseball glove
skateboard
surfboard
tennis racket
bottle
wine glass
cup
fork
knife
spoon
bowl
banana
apple
sandwich
orange
broccoli
carrot
hot dog
pizza
donut
cake
chair
couch
potted plant
bed
dining table
toilet
tv
laptop
mouse
remote
keyboard
cell phone
microwave
oven
toaster
sink
refrigerator
book
clock
vase
scissors
teddy bear
hair drier
toothbrush

I hope this post allows you to successfully load the labels into the editor. Let me know if you have any more questions.

PIjarihd commented 2 years ago

Thank You so much for such a simple and step-wise description. It works.

SkalskiP commented 2 years ago

labels.txt example: labels.txt

alexHxun commented 1 year ago

It still doesnt work , cant import annotation file like 'image-001.txt'