Skip to content

Commit 0a71fd7

Browse files
committed
backbone: Change default pretrained weights path
1 parent 23b0c41 commit 0a71fd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/backbone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def make_initial_conv(self, in_channels: int, out_channels: int):
5050
def load_backbone(num_classes: int, pretrained=False):
5151
model = Backbone(num_classes)
5252
if pretrained:
53-
if os.path.exists('weights/Backbone_best.pth'):
54-
model.load_state_dict(torch.load('weights/Backbone_best.pth'))
53+
if os.path.exists('weights/Backbone_val_best.pth'):
54+
model.load_state_dict(torch.load('weights/Backbone_val_best.pth'))
5555
else:
5656
print('FileNotFound: pretrained_weights (Backbone)')
5757
return model

0 commit comments

Comments
 (0)