Spaces:
Paused
Paused
Update model.py
Browse files
model.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
def create_effnetb2_feature_extractor(num_classes: int, seed:int=42):
|
| 2 |
weights = torchvision.models.EfficientNet_B2_Weights.DEFAULT
|
| 3 |
transforms = weights.transforms()
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
import torchvision
|
| 3 |
def create_effnetb2_feature_extractor(num_classes: int, seed:int=42):
|
| 4 |
weights = torchvision.models.EfficientNet_B2_Weights.DEFAULT
|
| 5 |
transforms = weights.transforms()
|