Views
No views yet
waste_dataset/
├── biodegradable/
│ ├── img1.jpg
│ └── ...
└── non_biodegradable/
├── img2.jpg
└── ...pip install -r requirements.txtpython train_waste_classifier.pymodels/waste_classifier_model/.python waste_classification_api.pyhttp://localhost:5000/classify./classify (POST)images)1{
2 "results": [
3 {
4 "label": "biodegradable",
5 "confidence": 0.94,
6 "description": "Easily breaks down naturally. Good for composting.",
7 "recyclable": false,
8 "disposal": "Use compost or organic bin",
9 "example_items": ["banana peel", "food waste", "paper"]
10 },
11 ...
12 ]
13}/classify and display the results using the modal.R and O), update the LABEL2INFO mapping and class names in the training script.google/vit-base-patch16-224 and fine-tuned for binary classification.