β»οΈ Smart Waste Classification β Week 3 Deep Learning Model + Web App (Streamlit)
A Sustainability-Themed AI Project
π Overview This project is part of the Skill4Future AI/ML Internship (Sustainability Theme). In Week 3, the goal is to:
->Train a CNN model to classify Organic vs Recyclable waste ->Preprocess and load dataset from Kaggle ->Generate training accuracy graph ->Save the trained model ->Build a simple Streamlit Web App for prediction ->Upload everything to GitHub
π Dataset Dataset (Kaggle): π https://www.kaggle.com/datasets/techsash/waste-classification-data
The dataset contains 2 classes: O β Organic Waste R β Recyclable Waste Folder structure: DATASET/ βββ TRAIN/ β βββ O/ β βββ R/ β βββ TEST/ βββ O/ βββ R/ π§ Model (CNN) A simple CNN model was trained: Input size: 128Γ128Γ3 Optimizer: Adam Loss: Categorical Crossentropy Epochs: 10 Classes: 2 Files saved as: waste_cnn_model.h5 accuracy_plot.png
π Notebook Training code is inside: π Week3-train.ipynb
This notebook includes: -Dataset loading -Preprocessing -Model training -Accuracy plot -Model saving
π Streamlit Web App File: app2.py This app allows users to upload an image and predicts: -Organic Waste -Recyclable Waste
pip install -r requirements.txt streamlit run app2.py
π Repository Structure WEEK3/ βββ README.md βββ Week3-train.ipynb βββ app2.py βββ accuracy_plot.png βββ waste_cnn_model.h5 (LFS) βββ requirements.txt
βοΈ Author
S. Prathik GitHub: https://github.com/prathik-05