Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I import annotations? #222

Closed
PIjarihd opened this issue Jan 6, 2022 · 5 comments
Closed

How can I import annotations? #222

PIjarihd opened this issue Jan 6, 2022 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@PIjarihd
Copy link

PIjarihd commented Jan 6, 2022

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
Copy link

github-actions bot commented Jan 6, 2022

👋 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 SkalskiP self-assigned this Jan 6, 2022
@SkalskiP SkalskiP added the question Further information is requested label Jan 6, 2022
@SkalskiP SkalskiP added this to To do in make-sense beta via automation Jan 6, 2022
@SkalskiP
Copy link
Owner

SkalskiP commented Jan 6, 2022

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:
  • image-001.png
  • image-002.png
  • image-003.png
  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:
  • image-001.txt
  • image-002.txt
  • image-003.txt

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
Copy link
Author

PIjarihd commented Jan 7, 2022

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

@SkalskiP
Copy link
Owner

labels.txt example: labels.txt

@alexHxun
Copy link

alexHxun commented Aug 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Development

No branches or pull requests

3 participants