Spaces:
Sleeping
Sleeping
Shreyavalte
commited on
Commit
•
0b973e7
1
Parent(s):
3b6a77d
Update model.py
Browse files
model.py
CHANGED
@@ -17,7 +17,7 @@ def create_Leaders_model(num_classes:int=3,
|
|
17 |
|
18 |
# Change classifier head with random seed for reproducibility
|
19 |
torch.manual_seed(seed)
|
20 |
-
|
21 |
nn.Linear(2048, 128),# nn.Linear layers capable of handling input and output shapes
|
22 |
nn.ReLU(inplace=True),
|
23 |
nn.Linear(in_features= 128,
|
|
|
17 |
|
18 |
# Change classifier head with random seed for reproducibility
|
19 |
torch.manual_seed(seed)
|
20 |
+
model.fc = nn.Sequential(
|
21 |
nn.Linear(2048, 128),# nn.Linear layers capable of handling input and output shapes
|
22 |
nn.ReLU(inplace=True),
|
23 |
nn.Linear(in_features= 128,
|