lannguyen0910 / food-recognition

🍔🍟🍗 Food analysis baseline with Theseus. Integrate object detection, image classification and multi-class semantic segmentation 🍞🍖🍕
MIT License
266 stars 74 forks source link

Yolov5 #33

Open TanWeeKang opened 5 months ago

TanWeeKang commented 5 months ago

Hi, this food detection project was well put together, thank you. However, I faced some issues when running inference on Colab.

The issues i faced were when running either Yolov5 model it keeps having error, like module error (no modules named 'models'). Yolov8 works fine, but for both models when I enabled ensemble models it gives the same error, no module named 'models'. Also, in inference, it is supposed to only run on Ngrok app?

I also tried running on local machine where the port 5000 was only available to run, it worked on local machine. But the same issues arose with Yolov5 not able to run and ensemble models error.

Is there a way to solve this? I am new to this and I am trying to learn for my upcoming project.

Thank you for your time if you could help!

Ultraman6 commented 1 month ago

is the structure of directory changed, which make the relative path saved in .pt wrong?