fix: remove deprecated parameter
Browse files- detector/model.py +1 -1
detector/model.py
CHANGED
@@ -13,7 +13,7 @@ import pytorch_lightning as ptl
|
|
13 |
class ResNet18Regressor(nn.Module):
|
14 |
def __init__(self):
|
15 |
super().__init__()
|
16 |
-
self.model = torchvision.models.resnet18(
|
17 |
self.model.fc = nn.Linear(512, config.FONT_COUNT + 12)
|
18 |
|
19 |
def forward(self, X):
|
|
|
13 |
class ResNet18Regressor(nn.Module):
|
14 |
def __init__(self):
|
15 |
super().__init__()
|
16 |
+
self.model = torchvision.models.resnet18(weights=False)
|
17 |
self.model.fc = nn.Linear(512, config.FONT_COUNT + 12)
|
18 |
|
19 |
def forward(self, X):
|