gyrojeff commited on
Commit
acab651
·
1 Parent(s): 6ff7b63

fix: remove deprecated parameter

Browse files
Files changed (1) hide show
  1. 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(pretrained=False)
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):