fix weights
Browse files
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=
|
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),
|