Skip to content

Commit

Permalink
Add test tutorial (#9)
Browse files Browse the repository at this point in the history
* add test tutorial

* remote torch/torchvision from requirements

* update getting started

* rename drop_out_ratio -> dropout_ratio
  • Loading branch information
xvjiarui authored Jul 12, 2020
1 parent 6c6330f commit 2fc821e
Show file tree
Hide file tree
Showing 34 changed files with 81 additions and 70 deletions.
4 changes: 2 additions & 2 deletions configs/_base_/models/ann_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
project_channels=256,
query_scales=(1, ),
key_pool_scales=(1, 3, 6, 8),
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -35,7 +35,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/ccnet_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
in_index=3,
channels=512,
recurrence=2,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -33,7 +33,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/danet_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
in_index=3,
channels=512,
pam_channels=64,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -33,7 +33,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/deeplabv3_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
in_index=3,
channels=512,
dilations=(1, 12, 24, 36),
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -33,7 +33,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/deeplabv3plus_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
dilations=(1, 12, 24, 36),
c1_in_channels=256,
c1_channels=48,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -35,7 +35,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/encnet_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
num_codes=32,
use_se_loss=True,
add_lateral=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -37,7 +37,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
2 changes: 1 addition & 1 deletion configs/_base_/models/fcn_hr18.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
kernel_size=1,
num_convs=1,
concat_input=False,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/fcn_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
channels=512,
num_convs=2,
concat_input=True,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -34,7 +34,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/gcnet_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
ratio=1 / 4.,
pooling_type='att',
fusion_types=('channel_add', ),
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -35,7 +35,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/nonlocal_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
in_channels=2048,
in_index=3,
channels=512,
drop_out_ratio=0.1,
dropout_ratio=0.1,
reduction=2,
use_scale=True,
mode='embedded_gaussian',
Expand All @@ -35,7 +35,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/ocrnet_hr18.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
kernel_size=1,
num_convs=1,
concat_input=False,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -56,7 +56,7 @@
input_transform='resize_concat',
channels=512,
ocr_channels=256,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/psanet_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
shrink_factor=2,
normalization_factor=1.0,
psa_softmax=True,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -38,7 +38,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/pspnet_r50-d8.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
in_index=3,
channels=512,
pool_scales=(1, 2, 3, 6),
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -33,7 +33,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/_base_/models/upernet_r50.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
in_index=[0, 1, 2, 3],
pool_scales=(1, 2, 3, 6),
channels=512,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -33,7 +33,7 @@
channels=256,
num_convs=1,
concat_input=False,
drop_out_ratio=0.1,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/ocrnet/ocrnet_hr18_512x512_160k_ade20k.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
kernel_size=1,
num_convs=1,
concat_input=False,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=150,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -26,7 +26,7 @@
input_transform='resize_concat',
channels=512,
ocr_channels=256,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=150,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/ocrnet/ocrnet_hr18_512x512_20k_voc12aug.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
kernel_size=1,
num_convs=1,
concat_input=False,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=21,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -27,7 +27,7 @@
input_transform='resize_concat',
channels=512,
ocr_channels=256,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=21,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/ocrnet/ocrnet_hr18_512x512_40k_voc12aug.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
kernel_size=1,
num_convs=1,
concat_input=False,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=21,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -27,7 +27,7 @@
input_transform='resize_concat',
channels=512,
ocr_channels=256,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=21,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/ocrnet/ocrnet_hr18_512x512_80k_ade20k.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
kernel_size=1,
num_convs=1,
concat_input=False,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=150,
norm_cfg=norm_cfg,
align_corners=False,
Expand All @@ -26,7 +26,7 @@
input_transform='resize_concat',
channels=512,
ocr_channels=256,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=150,
norm_cfg=norm_cfg,
align_corners=False,
Expand Down
4 changes: 2 additions & 2 deletions configs/ocrnet/ocrnet_hr48_512x1024_160k_cityscapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
num_convs=1,
norm_cfg=norm_cfg,
concat_input=False,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=19,
align_corners=False,
loss_decode=dict(
Expand All @@ -31,7 +31,7 @@
input_transform='resize_concat',
in_index=(0, 1, 2, 3),
norm_cfg=norm_cfg,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=19,
align_corners=False,
loss_decode=dict(
Expand Down
4 changes: 2 additions & 2 deletions configs/ocrnet/ocrnet_hr48_512x1024_40k_cityscapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
num_convs=1,
norm_cfg=norm_cfg,
concat_input=False,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=19,
align_corners=False,
loss_decode=dict(
Expand All @@ -31,7 +31,7 @@
input_transform='resize_concat',
in_index=(0, 1, 2, 3),
norm_cfg=norm_cfg,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=19,
align_corners=False,
loss_decode=dict(
Expand Down
4 changes: 2 additions & 2 deletions configs/ocrnet/ocrnet_hr48_512x1024_80k_cityscapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
num_convs=1,
norm_cfg=norm_cfg,
concat_input=False,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=19,
align_corners=False,
loss_decode=dict(
Expand All @@ -31,7 +31,7 @@
input_transform='resize_concat',
in_index=(0, 1, 2, 3),
norm_cfg=norm_cfg,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=19,
align_corners=False,
loss_decode=dict(
Expand Down
4 changes: 2 additions & 2 deletions configs/ocrnet/ocrnet_hr48_512x512_160k_ade20k.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
num_convs=1,
norm_cfg=norm_cfg,
concat_input=False,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=150,
align_corners=False,
loss_decode=dict(
Expand All @@ -31,7 +31,7 @@
input_transform='resize_concat',
in_index=(0, 1, 2, 3),
norm_cfg=norm_cfg,
drop_out_ratio=-1,
dropout_ratio=-1,
num_classes=150,
align_corners=False,
loss_decode=dict(
Expand Down
Loading

0 comments on commit 2fc821e

Please sign in to comment.