Skip to content
This repository was archived by the owner on Aug 19, 2023. It is now read-only.

Commit 2fcd6ce

Browse files
readme update
1 parent 87c9dcf commit 2fcd6ce

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,23 @@ Note that the --csv_val argument is optional, in which case no validation will b
6767

6868
## Pre-trained model
6969

70-
A pre-trained model is available at: https://drive.google.com/open?id=1yLmjq3JtXi841yXWBxst0coAgR26MNBS
70+
A pre-trained model is available at:
71+
- https://drive.google.com/open?id=1yLmjq3JtXi841yXWBxst0coAgR26MNBS (this is a pytorch state dict)
72+
- https://drive.google.com/open?id=1hCtM35R_t6T8RJVSd74K4gB-A1MR-TxC (this is a pytorch model serialized via `torch.save()`)
7173

72-
This model can be loaded using:
74+
The state dict model can be loaded using:
7375

7476
```
7577
retinanet = model.resnet50(num_classes=dataset_train.num_classes(),)
7678
retinanet.load_state_dict(torch.load(PATH_TO_WEIGHTS))
7779
```
7880

81+
The pytorch model can be loaded directly using:
82+
83+
```
84+
retinanet = torch.load(PATH_TO_MODEL)
85+
```
86+
7987
## Visualization
8088

8189
To visualize the network detection, use `visualize.py`:

0 commit comments

Comments
 (0)