attilaultzindur commited on
Commit
212e7ed
·
0 Parent(s):

model uploaded

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. README.md +26 -0
  3. config.json +29 -0
  4. preprocessor_config.json +10 -0
  5. pytorch_model.bin +3 -0
.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ *.bin filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Garbage Classification Model
2
+
3
+ A ResNet50 model fine-tuned on the Garbage Classification dataset.
4
+
5
+ ## Model Details
6
+
7
+ - Base Architecture: ResNet50
8
+ - Input Size: 224x224
9
+ - Classes: battery, biological, cardboard, clothes, glass, metal, paper, plastic, shoes, trash
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from transformers import pipeline
15
+ from PIL import Image
16
+
17
+ # Create pipeline
18
+ classifier = pipeline("image-classification", model="YOUR_USERNAME/garbage-classification")
19
+
20
+ # Load image
21
+ image = Image.open("test_image.jpg")
22
+
23
+ # Make prediction
24
+ result = classifier(image)
25
+ print(f"Prediction: {result[0]['label']}, Confidence: {result[0]['score']:.2f}")
26
+ ```
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "resnet50",
3
+ "num_classes": 10,
4
+ "input_size": 224,
5
+ "classes": [
6
+ "battery",
7
+ "biological",
8
+ "cardboard",
9
+ "clothes",
10
+ "glass",
11
+ "metal",
12
+ "paper",
13
+ "plastic",
14
+ "shoes",
15
+ "trash"
16
+ ],
17
+ "normalize_mean": [
18
+ 0.485,
19
+ 0.456,
20
+ 0.406
21
+ ],
22
+ "normalize_std": [
23
+ 0.229,
24
+ 0.224,
25
+ 0.225
26
+ ],
27
+ "version": "1.0.0",
28
+ "description": "ResNet50 model fine-tuned for garbage classification"
29
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": 224,
3
+ "do_center_crop": true,
4
+ "do_normalize": true,
5
+ "do_resize": true,
6
+ "image_mean": [0.485, 0.456, 0.406],
7
+ "image_std": [0.229, 0.224, 0.225],
8
+ "resample": 3,
9
+ "size": 224
10
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d2052b6792500af12d25521c70c82ab3a246aac9b0a9f48abcdea2a62e99791
3
+ size 94413670