ErdemAtak commited on
Commit
392c0b9
·
verified ·
1 Parent(s): 7e5ec66

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -14,7 +14,7 @@ def create_vit_model(num_classes: int = 10,
14
  model = torchvision.models.vit_b_16(weights=weights)
15
 
16
  # 4. Freeze the base layers
17
- for param in model.parameters()
18
  param.requires_grad = False
19
 
20
  # 5. Adjust the number of heads(output)
 
14
  model = torchvision.models.vit_b_16(weights=weights)
15
 
16
  # 4. Freeze the base layers
17
+ for param in model.parameters():
18
  param.requires_grad = False
19
 
20
  # 5. Adjust the number of heads(output)