Spaces:
Sleeping
Sleeping
Update model.py
Browse files
model.py
CHANGED
@@ -17,7 +17,7 @@ def create_effnetb2_model(num_classes:int=3, # default output class = 3
|
|
17 |
# 5. Change classifier head with random seed for reproducability
|
18 |
torch.manual_seed(seed)
|
19 |
model.classifier = nn.Sequential(
|
20 |
-
nn.Dropout(p=0.3, inplace=True)
|
21 |
nn.Linear(in_features=1408, out_features=num_classes)
|
22 |
)
|
23 |
|
|
|
17 |
# 5. Change classifier head with random seed for reproducability
|
18 |
torch.manual_seed(seed)
|
19 |
model.classifier = nn.Sequential(
|
20 |
+
nn.Dropout(p=0.3, inplace=True),
|
21 |
nn.Linear(in_features=1408, out_features=num_classes)
|
22 |
)
|
23 |
|