Peter Jaimbo commited on
Commit
e703d0e
·
1 Parent(s): 432f4ea

set_seeds() in model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -27,7 +27,7 @@ def create_effnetb2_model(num_classes:int=3,
27
  param.requires_grad = False
28
 
29
  # Change the classifier head
30
- set_seeds()
31
  model.classifier = nn.Sequential(
32
  nn.Dropout(p=0.3, inplace=True),
33
  nn.Linear(in_features=1408,
 
27
  param.requires_grad = False
28
 
29
  # Change the classifier head
30
+ torch.manual_seed(seed)
31
  model.classifier = nn.Sequential(
32
  nn.Dropout(p=0.3, inplace=True),
33
  nn.Linear(in_features=1408,