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

Open
MikL9 opened this issue Apr 25, 2023 · 4 comments
Open

How to load my Yolo model locally #319

MikL9 opened this issue Apr 25, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@MikL9
Copy link

MikL9 commented Apr 25, 2023

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

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

thnak commented May 8, 2023

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 SkalskiP self-assigned this May 13, 2023
@SkalskiP SkalskiP added the bug Something isn't working label May 13, 2023
@SkalskiP
Copy link
Owner

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

owenip commented Jul 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants