-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Benchmark] Uploading FastFCN on ADE20K (#972)
* Uploading FastFCN on ADE20K * fixing lint error
- Loading branch information
1 parent
54bd4bd
commit 6d35d76
Showing
8 changed files
with
222 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
configs/fastfcn/fastfcn_r50-d32_jpu_aspp_512x512_160k_ade20k.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# model settings | ||
_base_ = './fastfcn_r50-d32_jpu_psp_512x512_160k_ade20k.py' | ||
norm_cfg = dict(type='SyncBN', requires_grad=True) | ||
model = dict( | ||
decode_head=dict( | ||
_delete_=True, | ||
type='ASPPHead', | ||
in_channels=2048, | ||
in_index=2, | ||
channels=512, | ||
dilations=(1, 12, 24, 36), | ||
dropout_ratio=0.1, | ||
num_classes=150, | ||
norm_cfg=norm_cfg, | ||
align_corners=False, | ||
loss_decode=dict( | ||
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)), | ||
# model training and testing settings | ||
train_cfg=dict(), | ||
test_cfg=dict(mode='whole')) |
20 changes: 20 additions & 0 deletions
20
configs/fastfcn/fastfcn_r50-d32_jpu_aspp_512x512_80k_ade20k.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# model settings | ||
_base_ = './fastfcn_r50-d32_jpu_psp_512x512_80k_ade20k.py' | ||
norm_cfg = dict(type='SyncBN', requires_grad=True) | ||
model = dict( | ||
decode_head=dict( | ||
_delete_=True, | ||
type='ASPPHead', | ||
in_channels=2048, | ||
in_index=2, | ||
channels=512, | ||
dilations=(1, 12, 24, 36), | ||
dropout_ratio=0.1, | ||
num_classes=150, | ||
norm_cfg=norm_cfg, | ||
align_corners=False, | ||
loss_decode=dict( | ||
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)), | ||
# model training and testing settings | ||
train_cfg=dict(), | ||
test_cfg=dict(mode='whole')) |
24 changes: 24 additions & 0 deletions
24
configs/fastfcn/fastfcn_r50-d32_jpu_enc_512x512_160k_ade20k.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# model settings | ||
_base_ = './fastfcn_r50-d32_jpu_psp_512x512_160k_ade20k.py' | ||
norm_cfg = dict(type='SyncBN', requires_grad=True) | ||
model = dict( | ||
decode_head=dict( | ||
_delete_=True, | ||
type='EncHead', | ||
in_channels=[512, 1024, 2048], | ||
in_index=(0, 1, 2), | ||
channels=512, | ||
num_codes=32, | ||
use_se_loss=True, | ||
add_lateral=False, | ||
dropout_ratio=0.1, | ||
num_classes=150, | ||
norm_cfg=norm_cfg, | ||
align_corners=False, | ||
loss_decode=dict( | ||
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0), | ||
loss_se_decode=dict( | ||
type='CrossEntropyLoss', use_sigmoid=True, loss_weight=0.2)), | ||
# model training and testing settings | ||
train_cfg=dict(), | ||
test_cfg=dict(mode='whole')) |
24 changes: 24 additions & 0 deletions
24
configs/fastfcn/fastfcn_r50-d32_jpu_enc_512x512_80k_ade20k.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# model settings | ||
_base_ = './fastfcn_r50-d32_jpu_psp_512x512_80k_ade20k.py' | ||
norm_cfg = dict(type='SyncBN', requires_grad=True) | ||
model = dict( | ||
decode_head=dict( | ||
_delete_=True, | ||
type='EncHead', | ||
in_channels=[512, 1024, 2048], | ||
in_index=(0, 1, 2), | ||
channels=512, | ||
num_codes=32, | ||
use_se_loss=True, | ||
add_lateral=False, | ||
dropout_ratio=0.1, | ||
num_classes=150, | ||
norm_cfg=norm_cfg, | ||
align_corners=False, | ||
loss_decode=dict( | ||
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0), | ||
loss_se_decode=dict( | ||
type='CrossEntropyLoss', use_sigmoid=True, loss_weight=0.2)), | ||
# model training and testing settings | ||
train_cfg=dict(), | ||
test_cfg=dict(mode='whole')) |
7 changes: 7 additions & 0 deletions
7
configs/fastfcn/fastfcn_r50-d32_jpu_psp_512x512_160k_ade20k.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
_base_ = [ | ||
'../_base_/models/fastfcn_r50-d32_jpu_psp.py', | ||
'../_base_/datasets/ade20k.py', '../_base_/default_runtime.py', | ||
'../_base_/schedules/schedule_160k.py' | ||
] | ||
model = dict( | ||
decode_head=dict(num_classes=150), auxiliary_head=dict(num_classes=150)) |
7 changes: 7 additions & 0 deletions
7
configs/fastfcn/fastfcn_r50-d32_jpu_psp_512x512_80k_ade20k.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
_base_ = [ | ||
'../_base_/models/fastfcn_r50-d32_jpu_psp.py', | ||
'../_base_/datasets/ade20k.py', '../_base_/default_runtime.py', | ||
'../_base_/schedules/schedule_80k.py' | ||
] | ||
model = dict( | ||
decode_head=dict(num_classes=150), auxiliary_head=dict(num_classes=150)) |