Skip to content

Commit 9d50168

Browse files
authored
Update README.md
1 parent 4fc34ad commit 9d50168

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Note: The HRNet backbone was contributed by @timothylimyl. A pre-trained backbon
2222

2323
### 2. Load the pretrained model:
2424
```python
25-
model =
26-
model.load_state_dict( torch.load( CKPT_PATH )['model_state'] )
25+
model = network.modeling.__dict__[MODEL_NAME](num_classes=NUM_CLASSES, output_stride=OUTPUT_SRTIDE)
26+
model.load_state_dict( torch.load( PATH_TO_PTH )['model_state'] )
2727
```
2828
### 3. Visualize segmentation outputs:
2929
```python

0 commit comments

Comments
 (0)