Spaces:
Sleeping
Sleeping
Update model.py
Browse filescorrected seeds setting
model.py
CHANGED
|
@@ -27,7 +27,7 @@ def create_effnetb2_model(output_classes:int=3,
|
|
| 27 |
|
| 28 |
#5. Change the classification head
|
| 29 |
#Set seed
|
| 30 |
-
|
| 31 |
model.classifier = nn.Sequential(
|
| 32 |
nn.Dropout(p=0.3, inplace=True),
|
| 33 |
nn.Linear(in_features=1408,
|
|
|
|
| 27 |
|
| 28 |
#5. Change the classification head
|
| 29 |
#Set seed
|
| 30 |
+
torch.manual_seed(42)
|
| 31 |
model.classifier = nn.Sequential(
|
| 32 |
nn.Dropout(p=0.3, inplace=True),
|
| 33 |
nn.Linear(in_features=1408,
|