Giter Club home page Giter Club logo

lannguyen0910 / food-recognition Goto Github PK

View Code? Open in Web Editor NEW
203.0 5.0 66.0 364.7 MB

๐Ÿ”๐ŸŸ๐Ÿ— Food analysis baseline with Theseus. Integrate object detection, image classification and multi-class semantic segmentation ๐Ÿž๐Ÿ–๐Ÿ•

License: MIT License

Python 65.00% JavaScript 5.64% CSS 11.00% HTML 18.18% Shell 0.14% Batchfile 0.03%
object-detection yolov5 pytorch food-detection efficientnet computer-vision deep-learning semantic-segmentation image-classification unetplusplus

food-recognition's Introduction

๐Ÿ‘‹ Hi, Iโ€™m Hoang-Lan. Iโ€™m a Master's student in Germany, formerly an apprentice Data Engineer.

๐Ÿ”ญ Iโ€™m interested in data engineering, cloud computing, machine learning, and deep learning.

๐Ÿ“ซ My email: [email protected].

๐Ÿ™‹โ€โ™‚๏ธ More about me: โœจ https://lannguyende.com/ โœจ

total stars followers

๐Ÿ‘จโ€๐Ÿ’ป Tech stacks

Code C++ C# JS React Java Python OpenCV Pytorch Linux Docker Spark Airflow GCP

๐Ÿ‘จโ€๐Ÿซ Profile 3D


โ˜ฐ Read More

๐Ÿ† Trophies

๐Ÿ“ˆ My Github Stats

lannguyen0910's Github Stats lannguyen0910's Top Languages


โš”๏ธ Activities

GitHub Streak


๐Ÿ“ž Contact me at

food-recognition's People

Contributors

code-factor avatar deepsource-io[bot] avatar kaylode avatar lannguyen0910 avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

food-recognition's Issues

Error with Inference Code

Hi! Amazing repo, and I have downloaded the code and tried to make it run from my local computer. However, the program runs into this issue that I can't seem to resolve (tried running it in Windows OS as well). I've tried online solutions to similar problems, but none of them were successful. Here is the error message I get:

Traceback (most recent call last):
File "/mnt/c/FoodImageRecognition/app.py", line 128, in
model_best = load_model('best_model_101class.hdf5', compile=False) #die
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/keras/saving/save.py", line 205, in load_model
return saved_model_load.load(filepath, compile, options)
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/keras/saving/saved_model/load.py", line 122, in load
meta_graph_def = loader_impl.parse_saved_model(path).meta_graphs[0]
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/saved_model/loader_impl.py", line 116, in parse_saved_model
raise IOError(
OSError: SavedModel file does not exist at: best_model_101class.hdf5/{saved_model.pbtxt|saved_model.pb}

If you could help me resolve this issue, that would be greatly appreciated! Thank you!

Issues with Custom model

Hi, the repo is great!

The weights associated with this repo are in .pth format, usually the weights are .pt format and the pretrained weights from yolov5 repo are not working here.

Is there a way to convert the .pt weights to .pth and use with your model?

Incredibly Low Accuracy

Hello! This repo looks great. I have tested this out on my local machine, with and without ngrok. I've noticed an abnormally low accuracy, with most pictures I try resulting in an incorrect result. This is very different from the accuracy in the README, which states an accuracy of 84.069 and a balanced accuracy of 86.033. Why would this be?

Segmentation function not working

Thank @kaylode and @lannguyen0910! you guys did a well-done project. I have tried to run the app notebook and found that the segmentation function is not working basically. the detection is working fine. Could you please check it out?
I see you using Unet++ from segmentation from segmentation_models.pytorch. Could you please share with me a training notebook? I find it hard to make the right setup and data preparation. I would like to understand how to implement it correctly. You can share with me via my email at [email protected]. Thank you so much!

Missing yaml files in configs

When I run the project through the python app.py, it noticed that the 'models'.yaml file is missed in 'utilities/configs' like, FileNotFoundError: [Errno 2] No such file or directory: 'utilities/configs/yolov5m.yaml' and it is also missed in './models/configs/detection' there even have no detection file under the configs path

Upload Food

Hi I upload food photo, press Detect and see Internal Server Error message. Please advise how could I use it. Thanks.

messageImage_1677752240016
messageImage_1677752196191

Inference Colab notebook ngrok agent version too old

Hi,
Thank you for putting together this app !
I tried to run the inference notebook on Colab, but I got an error with the ngrok version:

Your ngrok-agent version "2.3.41" is too old. The minimum supported agent version for your account is "3.2.0". Please update to a newer version with `ngrok update`, by downloading from https://ngrok.com/download, or by updating your SDK version. Paid accounts are currently excluded from minimum agent version requirements. To begin handling traffic immediately without updating your agent, upgrade to a paid plan: https://dashboard.ngrok.com/billing/subscription.

ERR_NGROK_121

However, when I run ngrok update in the notebook, it says it's up to date:
!/ngrok update
No update available, this is the latest version.
Output of !/ngrok --version:
ngrok version 2.3.41

I'm not familiar with ngrok, so I don't quite know how to solve the issue right now.

Question about training datasets

Hi, this is a very impressive work! May I know the public food datasets name that you used for training the model? From the google drive, I only recognize "school lunch", where are the other training data comes from such as old_v1, vn_food? Thanks!

Yolov5

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!

ERROR: No matching distribution found for opencv-python-headless==4.2.0.32

I'm getting the following error after cloning the project and running pip install -e .. Any idea what might be causing this? Thanks!

ERROR: Could not find a version that satisfies the requirement opencv-python-headless==4.2.0.32 (from food-recognition) (from versions: 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66, 4.7.0.68, 4.7.0.72)
ERROR: No matching distribution found for opencv-python-headless==4.2.0.32

System Information:
Apple M1
macOS 13.1
python 3.10.6
pip 23.0.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.