SoulPerforms commited on
Commit
bf9d2fc
·
verified ·
1 Parent(s): 7fcafbb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -16,10 +16,10 @@ Epoch: 28 Train Loss: 0.17 Train Accuracy: 0.96 Test Accuracy: 0.90
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)
24
- 8. # predict the images
25
  9. model_for_predict.eval())
 
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)
24
+ 8. predict the images
25
  9. model_for_predict.eval())