kingkenche commited on
Commit
0c0a210
·
verified ·
1 Parent(s): 707a482

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +51 -0
README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: mit
4
+ tags:
5
+ - image-classification
6
+ - stl10
7
+ - resnet18
8
+ - pytorch
9
+ datasets:
10
+ - Chiranjeev007/STL-10_Subset
11
+ metrics:
12
+ - accuracy
13
+ ---
14
+
15
+ # STL-10 ResNet-18 Classification Model
16
+
17
+ This model is a fine-tuned ResNet-18 for STL-10 image classification.
18
+
19
+ ## Model Details
20
+ - Base Model: ResNet-18 (pretrained on ImageNet)
21
+ - Dataset: STL-10 Subset
22
+ - Classes: 10
23
+ - Accuracy: 0.8400
24
+
25
+ ## Class Names
26
+ airplane, bird, car, cat, deer, dog, horse, monkey, ship, truck
27
+
28
+ ## Usage
29
+
30
+ ```python
31
+ import torch
32
+ from torchvision import transforms
33
+ from PIL import Image
34
+
35
+ # Load model (implement loading logic)
36
+ # model = load_model()
37
+
38
+ # Define transform
39
+ transform = transforms.Compose([
40
+ transforms.Resize((224, 224)),
41
+ transforms.ToTensor(),
42
+ transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
43
+ ])
44
+
45
+ # Inference
46
+ image = Image.open("path/to/image.jpg")
47
+ input_tensor = transform(image).unsqueeze(0)
48
+ with torch.no_grad():
49
+ outputs = model(input_tensor)
50
+ predicted_class = torch.argmax(outputs, dim=1)
51
+ ```