Spaces:
Sleeping
Sleeping
Commit
·
70f7338
1
Parent(s):
9baeefb
second try
Browse files
model.py
CHANGED
@@ -7,7 +7,7 @@ def create_effnetb2_model(num_classes:int = 3, seed:int = 42):
|
|
7 |
weights = torchvision.models.EfficientNet_B2_Weights.DEFAULT
|
8 |
transforms = weights.transforms()
|
9 |
|
10 |
-
model = torchvision.models.efficientnet_b2(weights=weights)
|
11 |
|
12 |
for param in model.parameters():
|
13 |
param.requires_grad = False
|
|
|
7 |
weights = torchvision.models.EfficientNet_B2_Weights.DEFAULT
|
8 |
transforms = weights.transforms()
|
9 |
|
10 |
+
model = torchvision.models.efficientnet_b2(weights=weights)
|
11 |
|
12 |
for param in model.parameters():
|
13 |
param.requires_grad = False
|