Commit ·
212e7ed
0
Parent(s):
model uploaded
Browse filesFiles changed (5)
- .gitattributesAdded+1
- README.mdAdded+26
- config.jsonAdded+29
- preprocessor_config.jsonAdded+10
- pytorch_model.binAdded+3
1*.bin filter=lfs diff=lfs merge=lfs -text1234567891011121314151617181920212223242526# Garbage Classification Model
A ResNet50 model fine-tuned on the Garbage Classification dataset.
## Model Details
- Base Architecture: ResNet50- Input Size: 224x224- Classes: battery, biological, cardboard, clothes, glass, metal, paper, plastic, shoes, trash
## Usage
```pythonfrom transformers import pipelinefrom PIL import Image
# Create pipelineclassifier = pipeline("image-classification", model="YOUR_USERNAME/garbage-classification")
# Load imageimage = Image.open("test_image.jpg")
# Make predictionresult = classifier(image)print(f"Prediction: {result[0]['label']}, Confidence: {result[0]['score']:.2f}")```1234567891011121314151617181920212223242526272829{ "model_name": "resnet50", "num_classes": 10, "input_size": 224, "classes": [ "battery", "biological", "cardboard", "clothes", "glass", "metal", "paper", "plastic", "shoes", "trash" ], "normalize_mean": [ 0.485, 0.456, 0.406 ], "normalize_std": [ 0.229, 0.224, 0.225 ], "version": "1.0.0", "description": "ResNet50 model fine-tuned for garbage classification"}12345678910{ "crop_size": 224, "do_center_crop": true, "do_normalize": true, "do_resize": true, "image_mean": [0.485, 0.456, 0.406], "image_std": [0.229, 0.224, 0.225], "resample": 3, "size": 224 }123version https://git-lfs.github.com/spec/v1oid sha256:5d2052b6792500af12d25521c70c82ab3a246aac9b0a9f48abcdea2a62e99791size 94413670.gitattributesAdded+1
README.mdAdded+26
config.jsonAdded+29
preprocessor_config.jsonAdded+10
pytorch_model.binAdded+3