Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,45 +1,21 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|