again...
Browse files
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,
|
| 23 |
nn.ReLU(),
|
| 24 |
-
nn.BatchNorm1d(
|
| 25 |
-
nn.Linear(
|
| 26 |
nn.ReLU(),
|
| 27 |
-
nn.BatchNorm1d(
|
| 28 |
-
nn.Linear(
|
| 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):
|