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 to load my Yolo model locally #319

Open MikL9 opened 1 year ago

MikL9 commented 1 year ago

I am new to recognition and never used tensorflow before. And I can't figure out how to load my model into the tool. Because when I upload all files to AI import it shows me that it regocnized 5 model files and 8 classes, but still gives me an error: "Looks like we ware unable to load your tensorflow.js model from uploaded files. Make sure that you uploaded all model shard files. Please re-upload all model files once again."

I have model.json file, shards, best_float16 and 32 .tflite and labels as well (I provide file list withing screenshot) Без имени

I got these files as a result of export from best.pt model created with Yolo by myself. And it's working for me. Please give a hint if I'm doing something wrong. Or I missed something. Maybe I am importing extra unnecessary files or something is missing. Thank you in advance

github-actions[bot] commented 1 year ago

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

thnak commented 1 year ago

i got same issue. the model is correct and when i try with this repositories everything was fine. also, i have a model was exported before and it work fine in that time but now it is not working and raise this error. very strange problem because some model work fine and some don't

Update: export model with rectangle shape will not work, square only! image

SkalskiP commented 1 year ago

Hi, @thnak and @MikL9 👋🏻! I'd need to do some investigation. Btw I'm sorry for the late response. I've been super busy lately.

owenip commented 1 year ago

@thnak I have encountered similar issue. In short, your yolo model is expecting 384 x 640 images but the image you uploaded is 1280x1280