Spaces:
Runtime error
Runtime error
commit
Browse files
model.py
CHANGED
@@ -29,7 +29,7 @@ def create_effnetb2_model(num_classes:int=101,
|
|
29 |
param.requires_grad = False
|
30 |
|
31 |
# Change the classifier head with random seed for reproducibility
|
32 |
-
torch.
|
33 |
model.classifier = nn.Sequential(
|
34 |
nn.Dropout(p=0.3, inplace=True),
|
35 |
nn.Linear(in_features=1408, out_features=num_classes)
|
|
|
29 |
param.requires_grad = False
|
30 |
|
31 |
# Change the classifier head with random seed for reproducibility
|
32 |
+
torch.manual_seed(seed)
|
33 |
model.classifier = nn.Sequential(
|
34 |
nn.Dropout(p=0.3, inplace=True),
|
35 |
nn.Linear(in_features=1408, out_features=num_classes)
|