Spaces:
Sleeping
Sleeping
Update model.py
Browse files
model.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import torchvision
|
| 2 |
from torch import nn
|
| 3 |
|
| 4 |
-
def
|
| 5 |
# 1. Get the base mdoel with pretrained weights and send to target device
|
| 6 |
weights = torchvision.models.EfficientNet_B1_Weights.DEFAULT
|
| 7 |
transforms = weights.transforms()
|
|
|
|
| 1 |
import torchvision
|
| 2 |
from torch import nn
|
| 3 |
|
| 4 |
+
def create_effnet_b1(num_classes:int=5, seed:int=42):
|
| 5 |
# 1. Get the base mdoel with pretrained weights and send to target device
|
| 6 |
weights = torchvision.models.EfficientNet_B1_Weights.DEFAULT
|
| 7 |
transforms = weights.transforms()
|