TalalWasim commited on
Commit
7160924
·
1 Parent(s): 709f67b

updated model details

Browse files
Files changed (1) hide show
  1. README.md +30 -1
README.md CHANGED
@@ -1 +1,30 @@
1
- This repository contains models trained to predict orientation {0:'up', 1:'down'} of images. The dataset used is the CIFAR10, normalized using mean and stdev of the training set, and resized to 224x224.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
13
+ model: EfficientNet-B1
14
+ dataset: CIFAR10 (restructured to have random upright and upside-down samples, with labels {0:'up', 1:'down'}
15
+ imgSize: 224x224x3
16
+ ---
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
+ '''