Skip to content

Commit 7a839cb

Browse files
authored
Update README.md
1 parent 88c0311 commit 7a839cb

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

README.md

+15-13
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,21 @@ It also has out-of-box support for retraining on Google Open Images dataset.
1717
5. Pandas
1818
6. Boto3 if you want to train models on the Google OpenImages Dataset.
1919

20+
## Download models
21+
22+
**Please download the models and put them into the folder "./models". The following sections will need them.** URL: https://drive.google.com/drive/folders/1pKn-RifvJGWiOx0ZCRLtCXM5GT5lAluu?usp=sharing
23+
2024
## Run the demo
2125
### Run the live MobilenetV1 SSD demo
2226

2327
```bash
24-
wget -P models https://storage.googleapis.com/models-hao/mobilenet-v1-ssd-mp-0_675.pth
25-
wget -P models https://storage.googleapis.com/models-hao/voc-model-labels.txt
28+
# If you haven't downloaded the models, please download from https://drive.google.com/drive/folders/1pKn-RifvJGWiOx0ZCRLtCXM5GT5lAluu?usp=sharing.
2629
python run_ssd_live_demo.py mb1-ssd models/mobilenet-v1-ssd-mp-0_675.pth models/voc-model-labels.txt
2730
```
2831
### Run the live demo in Caffe2
2932

3033
```bash
31-
wget -P models https://storage.googleapis.com/models-hao/mobilenet_v1_ssd_caffe2/mobilenet-v1-ssd_init_net.pb
32-
wget -P models https://storage.googleapis.com/models-hao/mobilenet_v1_ssd_caffe2/mobilenet-v1-ssd_predict_net.pb
34+
# If you haven't downloaded the models, please download from https://drive.google.com/drive/folders/1pKn-RifvJGWiOx0ZCRLtCXM5GT5lAluu?usp=sharing.
3335
python run_ssd_live_caffe2.py models/mobilenet-v1-ssd_init_net.pb models/mobilenet-v1-ssd_predict_net.pb models/voc-model-labels.txt
3436
```
3537

@@ -38,8 +40,7 @@ You can see a decent speed boost by using Caffe2.
3840
### Run the live MobileNetV2 SSD Lite demo
3941

4042
```bash
41-
wget -P models https://storage.googleapis.com/models-hao/mb2-ssd-lite-mp-0_686.pth
42-
wget -P models https://storage.googleapis.com/models-hao/voc-model-labels.txt
43+
# If you haven't downloaded the models, please download from https://drive.google.com/drive/folders/1pKn-RifvJGWiOx0ZCRLtCXM5GT5lAluu?usp=sharing.
4344
python run_ssd_live_demo.py mb2-ssd-lite models/mb2-ssd-lite-mp-0_686.pth models/voc-model-labels.txt
4445
```
4546

@@ -53,7 +54,9 @@ You may notice MobileNetV2 SSD/SSD-Lite is slower than MobileNetV1 SSD/Lite on P
5354

5455
### Mobilenet V1 SSD
5556

56-
URL: https://storage.googleapis.com/models-hao/mobilenet-v1-ssd-mp-0_675.pth
57+
If you haven't downloaded the models, please download from https://drive.google.com/drive/folders/1pKn-RifvJGWiOx0ZCRLtCXM5GT5lAluu?usp=sharing.
58+
59+
Model: mobilenet-v1-ssd-mp-0_675.pth
5760

5861
```
5962
Average Precision Per-class:
@@ -83,7 +86,9 @@ Average Precision Across All Classes:0.6755
8386

8487
### MobileNetV2 SSD-Lite
8588

86-
URL: https://storage.googleapis.com/models-hao/mb2-ssd-lite-mp-0_686.pth
89+
If you haven't downloaded the models, please download from https://drive.google.com/drive/folders/1pKn-RifvJGWiOx0ZCRLtCXM5GT5lAluu?usp=sharing.
90+
91+
Model: mb2-ssd-lite-mp-0_686.pth
8792

8893
```
8994
Average Precision Per-class:
@@ -113,13 +118,13 @@ Average Precision Across All Classes:0.6860690100560214
113118
The code to re-produce the model:
114119

115120
```bash
116-
wget -P models https://storage.googleapis.com/models-hao/mb2-imagenet-71_8.pth
121+
# If you haven't downloaded the models, please download from https://drive.google.com/drive/folders/1pKn-RifvJGWiOx0ZCRLtCXM5GT5lAluu?usp=sharing.
117122
python train_ssd.py --dataset_type voc --datasets ~/data/VOC0712/VOC2007 ~/data/VOC0712/VOC2012 --validation_dataset ~/data/VOC0712/test/VOC2007/ --net mb2-ssd-lite --base_net models/mb2-imagenet-71_8.pth --scheduler cosine --lr 0.01 --t_max 200 --validation_epochs 5 --num_epochs 200
118123
```
119124

120125
### VGG SSD
121126

122-
URL: https://storage.googleapis.com/models-hao/vgg16-ssd-mp-0_7726.pth
127+
Model: vgg16-ssd-mp-0_7726.pth
123128

124129

125130
```
@@ -156,7 +161,6 @@ python train_ssd.py --datasets ~/data/VOC0712/VOC2007/ ~/data/VOC0712/VOC2012/ -
156161
## Training
157162
158163
```bash
159-
wget -P models https://storage.googleapis.com/models-hao/mobilenet_v1_with_relu_69_5.pth
160164
python train_ssd.py --datasets ~/data/VOC0712/VOC2007/ ~/data/VOC0712/VOC2012/ --validation_dataset ~/data/VOC0712/test/VOC2007/ --net mb1-ssd --base_net models/mobilenet_v1_with_relu_69_5.pth --batch_size 24 --num_epochs 200 --scheduler cosine --lr 0.01 --t_max 200
161165
```
162166
@@ -185,8 +189,6 @@ Let's we are building a model to detect guns for security purpose.
185189
Before you start you can try the demo.
186190
187191
```bash
188-
wget -P models https://storage.googleapis.com/models-hao/gun_model_2.21.pth
189-
wget -P models https://storage.googleapis.com/models-hao/open-images-model-labels.txt
190192
python run_ssd_example.py mb1-ssd models/gun_model_2.21.pth models/open-images-model-labels.txt ~/Downloads/big.JPG
191193
```
192194

0 commit comments

Comments
 (0)