Spaces:
Build error
Build error
Commit
·
9eff9c7
1
Parent(s):
141cd5b
Update app.py
Browse files
app.py
CHANGED
@@ -17,11 +17,10 @@ for param in model.parameters():
|
|
17 |
|
18 |
# # Replace the classifier layer
|
19 |
# # to customise it according to our output
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
# )
|
25 |
|
26 |
checkpoint = torch.load(
|
27 |
"CatVsDogsModel.pth", map_location=torch.device("cpu")
|
|
|
17 |
|
18 |
# # Replace the classifier layer
|
19 |
# # to customise it according to our output
|
20 |
+
model.classifier = nn.Sequential(
|
21 |
+
nn.Linear(256 * 7 * 7, 1024),
|
22 |
+
nn.Linear(1024, 256),
|
23 |
+
nn.Linear(256, 2))
|
|
|
24 |
|
25 |
checkpoint = torch.load(
|
26 |
"CatVsDogsModel.pth", map_location=torch.device("cpu")
|