fengruilin commited on
Commit
92c7f7e
·
verified ·
1 Parent(s): 45a5c8a
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -19,13 +19,13 @@ class MyCarClassifier(nn.Module):
19
  in_ch = self.backbone.fc.in_features
20
  self.backbone.fc = nn.Identity()
21
  self.fc = nn.Sequential(
22
- nn.Linear(in_ch, 512), # fc.1
23
  nn.ReLU(),
24
- nn.BatchNorm1d(512), # fc.3
25
- nn.Linear(512, 256), # fc.5
26
  nn.ReLU(),
27
- nn.BatchNorm1d(256), # fc.7
28
- nn.Linear(256, num_classes) # fc.9
29
  )
30
 
31
  def forward(self, x):
 
19
  in_ch = self.backbone.fc.in_features
20
  self.backbone.fc = nn.Identity()
21
  self.fc = nn.Sequential(
22
+ nn.Linear(in_ch, 1024), # fc.1
23
  nn.ReLU(),
24
+ nn.BatchNorm1d(1024), # fc.3
25
+ nn.Linear(1024, 512), # fc.5
26
  nn.ReLU(),
27
+ nn.BatchNorm1d(512), # fc.7
28
+ nn.Linear(512, num_classes) # fc.9
29
  )
30
 
31
  def forward(self, x):