We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fc34ad commit 9d50168Copy full SHA for 9d50168
1 file changed
README.md
@@ -22,8 +22,8 @@ Note: The HRNet backbone was contributed by @timothylimyl. A pre-trained backbon
22
23
### 2. Load the pretrained model:
24
```python
25
-model =
26
-model.load_state_dict( torch.load( CKPT_PATH )['model_state'] )
+model = network.modeling.__dict__[MODEL_NAME](num_classes=NUM_CLASSES, output_stride=OUTPUT_SRTIDE)
+model.load_state_dict( torch.load( PATH_TO_PTH )['model_state'] )
27
```
28
### 3. Visualize segmentation outputs:
29
0 commit comments