Theem commited on
Commit
41cb296
·
1 Parent(s): d55be37

fix weights

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -14,7 +14,7 @@ The file is given as a state_dict. Thus to initialize the model run:
14
  # Load pretrained weights
15
  state_dict = torch.load(model_path, map_location=torch.device('cpu'))['model']
16
  # Load torchvision model
17
- model = torchvision.models.detection.fasterrcnn_resnet50_fpn(weights='DEFAULT')
18
  # Adapt input convolution
19
  model.backbone.body.conv1 = torch.nn.Conv2d(1, 64,
20
  kernel_size=(7, 7), stride=(2, 2),
 
14
  # Load pretrained weights
15
  state_dict = torch.load(model_path, map_location=torch.device('cpu'))['model']
16
  # Load torchvision model
17
+ model = torchvision.models.detection.fasterrcnn_resnet50_fpn(weights=None)
18
  # Adapt input convolution
19
  model.backbone.body.conv1 = torch.nn.Conv2d(1, 64,
20
  kernel_size=(7, 7), stride=(2, 2),