SoulPerforms commited on
Commit
0a67740
·
verified ·
1 Parent(s): 8c27fdd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -5
README.md CHANGED
@@ -7,17 +7,20 @@ metrics:
7
  pipeline_tag: image-classification
8
  ---
9
  Butterfly image classification model that use pre-trained cnn model resnet18 and fine-tuned the last fully connected layer to classify 75 categories of butterfly species.
10
- The model used the best checkpoint with 90% test accuracy. The model constructed on Pytorch environment.
11
 
12
- training and testing result:
 
 
 
 
13
 
14
  Epoch: 28 Train Loss: 0.17 Train Accuracy: 0.96 Test Accuracy: 0.90
15
 
16
- to use this model you have to:
17
 
18
- 1. download the model
19
  2. load pretrained model resnet18
20
- 3. model = models.resnet18(pretrained=True)
21
  4. load checkpoint from your local
22
  5. checkpoint = torch.load('butterfly_resnet_checkpoint.model')
23
  7. model_for_predict.load_state_dict(checkpoint)
 
7
  pipeline_tag: image-classification
8
  ---
9
  Butterfly image classification model that use pre-trained cnn model resnet18 and fine-tuned the last fully connected layer to classify 75 categories of butterfly species.
 
10
 
11
+ The model used the best checkpoint with 90% test accuracy.
12
+
13
+ The model constructed on Pytorch environment.
14
+
15
+ # Training and testing result:
16
 
17
  Epoch: 28 Train Loss: 0.17 Train Accuracy: 0.96 Test Accuracy: 0.90
18
 
19
+ # To use this model you have to:
20
 
21
+ 1. download this model
22
  2. load pretrained model resnet18
23
+ 3. model_for_predict = models.resnet18(pretrained=True)
24
  4. load checkpoint from your local
25
  5. checkpoint = torch.load('butterfly_resnet_checkpoint.model')
26
  7. model_for_predict.load_state_dict(checkpoint)