{"id":24775848,"url":"https://github.com/g-wtham/garbage-classifier-fastapi","last_synced_at":"2025-10-07T06:16:46.373Z","repository":{"id":272767361,"uuid":"917692209","full_name":"g-wtham/garbage-classifier-fastapi","owner":"g-wtham","description":"Garbage Classifier using Transfer Learning: ML-powered REST API for classifying waste. Built with FastAPI, TensorFlow, and Transfer Learning on NASNet.","archived":false,"fork":false,"pushed_at":"2025-01-18T07:27:12.000Z","size":17532,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T06:55:41.705Z","etag":null,"topics":["fastapi","jupyter-notebook","nasnetmobile","tensorflow","transfer-learning","uvicorn"],"latest_commit_sha":null,"homepage":"https://garbage-classifier-fastapi.onrender.com/static/index.html","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/g-wtham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-16T13:23:59.000Z","updated_at":"2025-01-18T07:27:13.000Z","dependencies_parsed_at":"2025-01-16T15:06:52.230Z","dependency_job_id":null,"html_url":"https://github.com/g-wtham/garbage-classifier-fastapi","commit_stats":null,"previous_names":["g-wtham/garbage-classifier-fastapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-wtham%2Fgarbage-classifier-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-wtham%2Fgarbage-classifier-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-wtham%2Fgarbage-classifier-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-wtham%2Fgarbage-classifier-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g-wtham","download_url":"https://codeload.github.com/g-wtham/garbage-classifier-fastapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245186930,"owners_count":20574554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","jupyter-notebook","nasnetmobile","tensorflow","transfer-learning","uvicorn"],"created_at":"2025-01-29T06:55:45.466Z","updated_at":"2025-10-07T06:16:41.334Z","avatar_url":"https://github.com/g-wtham.png","language":"Jupyter Notebook","readme":"# Garbage Classifier\n\nGarbage Classifier using Transfer Learning: ML-powered REST API for classifying waste. Built with FastAPI, TensorFlow, and Transfer Learning on NASNet.\n\nUse the live web version here : [Garbage Classifier - Web App](https://garbage-classifier-fastapi.onrender.com/static/index.html) \u003cbr\u003e\nTo reimplement this on your own and get the models, I have made a complete end-to-end guide \u0026 instructions here: [CNN \u0026 Transfer Learning](https://github.com/g-wtham/trash-classification-cnn-transferlearning)\n\n## System Architecture:\n![architecture1](https://github.com/user-attachments/assets/77f5ee56-75bd-46ee-b52b-9086b80cd0cc)\n![architecture2](https://github.com/user-attachments/assets/21ba0b19-a6bd-4872-ab8b-d0152750507e)\n\n\n## Setup Instructions :\n\n1. Clone the repository to your local machine (or) download as a _.zip_ file and extract it :\n\n`git clone https://github.com/g-wtham/garbage-classifier-fastapi/` \u003cbr\u003e\n`cd garbage-classifier-fastapi`\n\n2. Install the required dependencies using :\n`pip install -r requirements.txt`\n\n3. Change the fetch url in _`/static/script.js`_ file to `127.0.0.1:8000/predict` to start the FastAPI local development server. Open the `main.py` file in your code editor, run `uvicorn main:app --reload` in the terminal.\n\n4. Run the local dev server `localhost:8000` or `localhost:8000/static/index.html`. Done :)\n\nAnd right there is your web interface!\n\nNow you can upload your images and get the predictions! Colab file is also given which is used for training the model. \n\n## Model used :\n1. NasNet Mobile - Last 15 layers are trained on the [`TrashNet dataset`](https://www.kaggle.com/datasets/feyzazkefe/trashnet) and obtained _99.88%_ accuracy after _30 epochs!_\n\nhttps://github.com/user-attachments/assets/35ce0c52-9b90-40d8-8113-724511789e0e\n\n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-wtham%2Fgarbage-classifier-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg-wtham%2Fgarbage-classifier-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-wtham%2Fgarbage-classifier-fastapi/lists"}