Kelmoir commited on
Commit
c070ebb
·
verified ·
1 Parent(s): b11d3e4

Update model.py

Browse files

corrected seeds setting

Files changed (1) hide show
  1. model.py +1 -1
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
- set_seeds(42)
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,