Terence9 commited on
Commit
807bfa2
·
verified ·
1 Parent(s): 9df438a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -45
README.md CHANGED
@@ -1,45 +1,21 @@
1
- # Waste Classification Model
2
-
3
- This is a deep learning model for classifying waste images into two categories: Dry Waste and Wet Waste. The model is built using PyTorch and can be used for automated waste sorting systems.
4
-
5
- ## Model Details
6
-
7
- - **Model Type**: Convolutional Neural Network (CNN)
8
- - **Input**: RGB images
9
- - **Output**: Binary classification (Dry Waste / Wet Waste)
10
- - **Framework**: PyTorch
11
-
12
- ## Usage
13
-
14
- ```python
15
- import torch
16
- from model import WasteClassifier
17
-
18
- # Load the model
19
- model = WasteClassifier()
20
- model.load_state_dict(torch.load('waste_classifier.pth'))
21
- model.eval()
22
-
23
- # Make predictions
24
- def predict(image):
25
- with torch.no_grad():
26
- output = model(image)
27
- prediction = torch.argmax(output, dim=1)
28
- return "Dry Waste" if prediction.item() == 0 else "Wet Waste"
29
- ```
30
-
31
- ## Requirements
32
-
33
- The model requires the following dependencies:
34
- - PyTorch
35
- - torchvision
36
- - PIL
37
- - numpy
38
-
39
- ## Training
40
-
41
- The model was trained on a custom dataset of waste images. The training notebook (`training.ipynb`) contains the complete training pipeline and data preprocessing steps.
42
-
43
- ## License
44
-
45
- This model is released under the MIT License.
 
1
+ ---
2
+ title: Waste Classification AI
3
+ emoji: ♻️
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: docker
7
+ python_version: '3.10'
8
+ app_file: app.py
9
+ app_port: 7860
10
+ short_description: Classify waste images as dry or wet using a PyTorch model.
11
+ tags:
12
+ - image-classification
13
+ - waste-management
14
+ - pytorch
15
+ - computer-vision
16
+ - docker
17
+ pinned: false
18
+ license: mit
19
+ ---
20
+
21
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference