Your commit message
Browse files
model.py
CHANGED
|
@@ -3,6 +3,7 @@
|
|
| 3 |
import torch
|
| 4 |
from torchvision import transforms, models
|
| 5 |
import torch.nn as nn
|
|
|
|
| 6 |
|
| 7 |
def create_resnet_model(num_classes: int = 4, seed: int = 42):
|
| 8 |
transform = transforms.Compose([
|
|
|
|
| 3 |
import torch
|
| 4 |
from torchvision import transforms, models
|
| 5 |
import torch.nn as nn
|
| 6 |
+
from torchvision.models import resnet18, ResNet18_Weights
|
| 7 |
|
| 8 |
def create_resnet_model(num_classes: int = 4, seed: int = 42):
|
| 9 |
transform = transforms.Compose([
|