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

annotation import was unsuccessful #326

Closed AouatifZ closed 1 year ago

AouatifZ commented 1 year ago

Hello everyone,

I have a problem loading images and annotations in Make Sense,

Error ---> unexpected error occurs during parsing of image annotations file:

here's an example of my annotation

Example----> 2 0.809375 0.577604 0.110156 0.261458 3 0.601337 0.285813 0.080579 0.172176 2 0.679332 0.319559 0.052686 0.112948 0 0.400407 0.629477 0.120868 0.245179 1 0.207225 0.583333 0.133264 0.378788 2 0.081708 0.561983 0.076446 0.088154

any suggestion , what's the problem

thanks in advance

github-actions[bot] commented 1 year ago

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

alexHxun commented 1 year ago

same problem , can not import .txt file even i import the labels.txt with correct content

AouatifZ commented 1 year ago

I've found the solution: the labels files must respect the structure requested by MakeSense, i.e. labels.txt must not contain a space at the end of each bounding box in labels.txt, and also the last BB recorded in the file must not make a line break, to avoid any problems with the format and structure requested.

I hope this information helps solve your problem.

SkalskiP commented 1 year ago

Hi, @AouatifZ and @alexHxun 👋🏻! It seems that these changes should be simple to implement. Would you like me to remove these artificial restrictions related to whitespace characters?