TalalWasim commited on
Commit
56a6fc9
·
1 Parent(s): 7160924

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -7
README.md CHANGED
@@ -1,12 +1,12 @@
1
  This repository contains model trained to predict orientation {0:'up', 1:'down'} of images.
2
  The model '.pkl' file contains a dictionary with the following keys:
3
 
4
- ---
5
  'optimizer': optimizer state dictionary
6
  'scheduler': scheduler state dictionary
7
  'model': model state dictionary
8
  'epoch': checkpoint epoch
9
- ---
10
 
11
  ---
12
  framework: pytorch
@@ -17,14 +17,11 @@ imgSize: 224x224x3
17
 
18
  The model can be initialized as:
19
 
20
- '''
21
- # download pretrained model
22
  model = torchvision.models.efficientnet_b1(pretrained=True)
23
 
24
- # define input and output features size
25
  in_features = model.classifier[1].in_features
26
  out_features = 2
27
 
28
- # replace the last layer
29
  model.classifier[1] = nn.Linear(in_features, out_features, bias=True)
30
- '''
 
1
  This repository contains model trained to predict orientation {0:'up', 1:'down'} of images.
2
  The model '.pkl' file contains a dictionary with the following keys:
3
 
4
+ ```
5
  'optimizer': optimizer state dictionary
6
  'scheduler': scheduler state dictionary
7
  'model': model state dictionary
8
  'epoch': checkpoint epoch
9
+ ```
10
 
11
  ---
12
  framework: pytorch
 
17
 
18
  The model can be initialized as:
19
 
20
+ ```python:
 
21
  model = torchvision.models.efficientnet_b1(pretrained=True)
22
 
 
23
  in_features = model.classifier[1].in_features
24
  out_features = 2
25
 
 
26
  model.classifier[1] = nn.Linear(in_features, out_features, bias=True)
27
+ ```