Skip to content

Commit 9801c62

Browse files
authored
[Fix] update pp_mobileseg ckpt links (#3254)
1 parent e458a46 commit 9801c62

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed

projects/pp_mobileseg/README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,18 @@ Extensive experiments show that PP-MobileSeg achieves a superior params-accuracy
3030

3131
### ADE20K
3232

33-
| Model | Backbone | Training Iters | Batchsize | Train Resolution | mIoU(%) | latency(ms)\* | params(M) | config | Links |
34-
| ----------------- | ----------------- | -------------- | --------- | ---------------- | ------- | ------------- | --------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
35-
| PP-MobileSeg-Base | StrideFormer-Base | 80000 | 32 | 512x512 | 41.57% | 265.5 | 5.62 | [config](https://github.com/Yang-Changhui/mmsegmentation/tree/add_ppmobileseg/projects/pp_mobileseg/configs/pp_mobileseg) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/pp_mobileseg/pp_mobileseg_mobilenetv3_2x16_80k_ade20k_512x512_base-ed0be681.pth)\|[log](https://bj.bcebos.com/paddleseg/dygraph/ade20k/pp_mobileseg_base/train.log) |
36-
| PP-MobileSeg-Tiny | StrideFormer-Tiny | 80000 | 32 | 512x512 | 36.39% | 215.3 | 1.61 | [config](https://github.com/Yang-Changhui/mmsegmentation/tree/add_ppmobileseg/projects/pp_mobileseg/configs/pp_mobileseg) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/pp_mobileseg/pp_mobileseg_mobilenetv3_2x16_80k_ade20k_512x512_tiny-e4b35e96.pth)\|[log](https://bj.bcebos.com/paddleseg/dygraph/ade20k/pp_mobileseg_tiny/train.log) |
33+
| Model | Backbone | Training Iters | Batchsize | Train Resolution | mIoU(%) | latency(ms)\* | params(M) | config | Links |
34+
| ----------------- | ----------------- | -------------- | --------- | ---------------- | ------- | ------------- | --------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
35+
| PP-MobileSeg-Base | StrideFormer-Base | 80000 | 32 | 512x512 | 41.57% | 265.5 | 5.62 | [config](https://github.com/Yang-Changhui/mmsegmentation/tree/add_ppmobileseg/projects/pp_mobileseg/configs/pp_mobileseg) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/pp_mobileseg/pp_mobileseg_mobilenetv3_2xb16_3rdparty-base_512x512-ade20k-f12b44f3.pth)\|[log](https://bj.bcebos.com/paddleseg/dygraph/ade20k/pp_mobileseg_base/train.log) |
36+
| PP-MobileSeg-Tiny | StrideFormer-Tiny | 80000 | 32 | 512x512 | 36.39% | 215.3 | 1.61 | [config](https://github.com/Yang-Changhui/mmsegmentation/tree/add_ppmobileseg/projects/pp_mobileseg/configs/pp_mobileseg) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/pp_mobileseg/pp_mobileseg_mobilenetv3_2xb16_3rdparty-tiny_512x512-ade20k-a351ebf5.pth)\|[log](https://bj.bcebos.com/paddleseg/dygraph/ade20k/pp_mobileseg_tiny/train.log) |
37+
38+
## Usage
39+
40+
Same as other models in MMsegmentation, you can run the following command to test the model at ${MMSEG_ROOT}:
41+
42+
```shell
43+
./tools/dist_test.sh projects/pp_mobileseg/configs/pp_mobileseg/pp_mobileseg_mobilenetv3_2x16_80k_ade20k_512x512_base.py checkpoints/pp_mobileseg_mobilenetv3_2xb16_3rdparty-base_512x512-ade20k-f12b44f3.pth 8
44+
```
3745

3846
## Citation
3947

projects/pp_mobileseg/configs/pp_mobileseg/pp_mobileseg_mobilenetv3_2x16_80k_ade20k_512x512_base.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22
'../_base_/models/pp_mobile.py', '../_base_/datasets/ade20k.py',
33
'../_base_/default_runtime.py', '../_base_/schedules/schedule_80k.py'
44
]
5-
checkpoint = './models/pp_mobile_base.pth'
5+
# the custom import path is determined by your workspace path (i.e., where you run the command from) # noqa
6+
custom_imports = dict(
7+
imports=[
8+
'projects.pp_mobileseg.backbones', 'projects.pp_mobileseg.decode_head'
9+
],
10+
allow_failed_imports=False)
11+
checkpoint = 'https://download.openmmlab.com/mmsegmentation/v0.5/pp_mobileseg/pp_mobileseg_mobilenetv3_3rdparty-base-ed0be681.pth' # noqa
612
crop_size = (512, 512)
713
data_preprocessor = dict(size=crop_size, test_cfg=dict(size_divisor=32))
814
norm_cfg = dict(type='SyncBN', requires_grad=True)
915
model = dict(
1016
data_preprocessor=data_preprocessor,
11-
backbone=dict(init_cfg=dict(type='Pretrained', checkpoint=checkpoint), ),
12-
decode_head=dict(num_classes=150, upsample='intepolate'),
13-
)
17+
backbone=dict(init_cfg=dict(type='Pretrained', checkpoint=checkpoint)),
18+
decode_head=dict(num_classes=150, upsample='intepolate'))

projects/pp_mobileseg/configs/pp_mobileseg/pp_mobileseg_mobilenetv3_2x16_80k_ade20k_512x512_tiny.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
'../_base_/models/pp_mobile.py', '../_base_/datasets/ade20k.py',
33
'../_base_/default_runtime.py', '../_base_/schedules/schedule_80k.py'
44
]
5-
checkpoint = './models/pp_mobile_tiny.pth'
5+
# the custom import path is determined by your workspace path (i.e., where you run the command from) # noqa
6+
custom_imports = dict(
7+
imports=[
8+
'projects.pp_mobileseg.backbones', 'projects.pp_mobileseg.decode_head'
9+
],
10+
allow_failed_imports=False)
11+
checkpoint = 'https://download.openmmlab.com/mmsegmentation/v0.5/pp_mobileseg/pp_mobileseg_mobilenetv3_3rdparty-tiny-e4b35e96.pth' # noqa
612
crop_size = (512, 512)
713
data_preprocessor = dict(size=crop_size, test_cfg=dict(size_divisor=32))
814
norm_cfg = dict(type='SyncBN', requires_grad=True)

0 commit comments

Comments
 (0)