ahmzakif commited on
Commit
f649b8b
·
verified ·
1 Parent(s): a77f96b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -2
README.md CHANGED
@@ -11,5 +11,65 @@ tags:
11
  pipeline_tag: image-classification
12
  library_name: keras
13
  ---
14
- # Garbage Classification use CNN and Transfer Learning with MobileNetV2
15
- Model Used for transfer learning is MobileNetV2 to improve the model CNN already made
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  pipeline_tag: image-classification
12
  library_name: keras
13
  ---
14
+ # TrashNet-Classification
15
+
16
+ This project focuses on classifying images of garbage into distinct categories using transfer learning with the MobileNetV2 architecture. The goal is to facilitate efficient waste segregation by accurately identifying types of trash, which is essential for effective recycling and waste management.
17
+
18
+ ## Overview
19
+
20
+ The TrashNet-Classification project utilizes transfer learning with MobileNetV2 to classify images of garbage into categories such as cardboard, glass, paper, metal, and trash. By leveraging a pre-trained model, the project aims to achieve high accuracy with reduced training time and computational resources.
21
+
22
+ ## Project Structure
23
+
24
+ - `dataset/`: Directory containing the data set used in model training.
25
+ - `model/`: Directory containing the trained model.
26
+ - `01_Preprocessing-Data.ipynb`: Notebook for data preprocessing, including dataset download, extraction, and data augmentation.
27
+ - `02_Train-Model.ipynb`: Notebook for training the MobileNetV2 model with the preprocessed data.
28
+ - `03_Quantization_model.ipynb`: Notebook for model quantization to optimize performance.
29
+ - `requirements.txt`: List of Python dependencies required to run this project.
30
+
31
+ ## Requirements
32
+
33
+ Ensure you have Python 3.x installed and install the dependencies listed in `requirements.txt`:
34
+
35
+ ```bash
36
+ pip install -r requirements.txt
37
+ ```
38
+
39
+ ## Usage
40
+
41
+ - **Data Preprocessing**: Run the `01_Preprocessing-Data.ipynb` notebook to download and prepare the dataset. This notebook performs data augmentation to enhance model performance.
42
+ - **Model Training**: Once the data is prepared, execute `02_Train-Model.ipynb` to train the MobileNetV2 model with the processed data. This notebook includes steps for training and evaluating the model.
43
+ - **Model Quantization**: To optimize the model, run `03_Quantization_model.ipynb`. This step is optional but recommended for improving model efficiency.
44
+
45
+ ## Dataset
46
+
47
+ The dataset used is [TrashNet](https://huggingface.co/datasets/garythung/trashnet), which consists of images of trash in six categories: cardboard, glass, metal, paper, plastic, and trash. This dataset is widely used in research for deep learning-based trash classification.
48
+
49
+ ## Installation
50
+
51
+ To set up the project environment, follow these steps:
52
+
53
+ 1. Clone the repository:
54
+
55
+ ```bash
56
+ git clone https://github.com/ahmzakif/TrashNet-Classification.git
57
+ cd TrashNet-Classification
58
+ ```
59
+
60
+ 2. Create and activate a virtual environment:
61
+
62
+ ```bash
63
+ python -m venv venv
64
+ source venv/bin/activate # On Windows: venv\Scripts\activate
65
+ ```
66
+
67
+ 3. Install the required dependencies:
68
+
69
+ ```bash
70
+ pip install -r requirements.txt
71
+ ```
72
+
73
+ ## Contributing
74
+
75
+ Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request. Please ensure that your contributions align with the project's objectives and adhere to the coding standards.