Spaces:
Sleeping
Sleeping
Update model.py
Browse files
model.py
CHANGED
@@ -4,7 +4,7 @@ import torch.nn as nn
|
|
4 |
|
5 |
def create_effnetb2_model(num_classes:int=3, seed:int=3):
|
6 |
weights = torchvision.models.EfficientNet_B2_Weights.DEFAULT
|
7 |
-
transforms =
|
8 |
model = torchvision.models.efficientnet_b2(weights=weights)
|
9 |
|
10 |
# Freeze the base layers in the model (this will stop all layers from training)
|
|
|
4 |
|
5 |
def create_effnetb2_model(num_classes:int=3, seed:int=3):
|
6 |
weights = torchvision.models.EfficientNet_B2_Weights.DEFAULT
|
7 |
+
transforms = weights.transforms()
|
8 |
model = torchvision.models.efficientnet_b2(weights=weights)
|
9 |
|
10 |
# Freeze the base layers in the model (this will stop all layers from training)
|