Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature]: Full support of SimMIM (#487)
* [Fix]: Refine simmim-224-ft config * [Feature]: Add simmim-b 800e pt config * [Feature]: Add simmim large * [Feature]: Add ceph * [Fix]: Fix min lr and add pin_memory * [Feature]: Add more simmim res in readme and model_zoo * [Fix]: Refine lr * [Fix]: Delete file client
- Loading branch information
1 parent
1905569
commit 14afb8e
Showing
8 changed files
with
193 additions
and
11 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
33 changes: 33 additions & 0 deletions
33
configs/benchmarks/classification/imagenet/swin-large_ft-8xb256-coslr-ws14-100e_in1k-224.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,33 @@ | ||
_base_ = 'swin-base_ft-8xb256-coslr-100e_in1k-224.py' | ||
|
||
# model settings | ||
model = dict( | ||
backbone=dict( | ||
arch='L', | ||
img_size=224, | ||
drop_path_rate=0.2, | ||
stage_cfgs=dict(block_cfgs=dict(window_size=14)), | ||
pad_small_map=True), | ||
head=dict(in_channels=1536)) | ||
|
||
# schedule settings | ||
optim_wrapper = dict(optimizer=dict(layer_decay_rate=0.7)) | ||
|
||
# learning rate scheduler | ||
param_scheduler = [ | ||
dict( | ||
type='LinearLR', | ||
start_factor=2.5e-7 / 1.25e-3, | ||
by_epoch=True, | ||
begin=0, | ||
end=20, | ||
convert_to_iter_based=True), | ||
dict( | ||
type='CosineAnnealingLR', | ||
T_max=100, | ||
eta_min=1e-6, | ||
by_epoch=True, | ||
begin=20, | ||
end=100, | ||
convert_to_iter_based=True) | ||
] |
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
27 changes: 27 additions & 0 deletions
27
configs/selfsup/simmim/simmim_swin-base_16xb128-amp-coslr-800e_in1k-192.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,27 @@ | ||
_base_ = 'simmim_swin-base_16xb128-amp-coslr-100e_in1k-192.py' | ||
|
||
# optimizer wrapper | ||
optimizer = dict( | ||
type='AdamW', lr=1e-4 * 2048 / 512, betas=(0.9, 0.999), eps=1e-8) | ||
optim_wrapper = dict(optimizer=optimizer) | ||
|
||
# learning rate scheduler | ||
param_scheduler = [ | ||
dict( | ||
type='LinearLR', | ||
start_factor=5e-7 / 1e-4, | ||
by_epoch=True, | ||
begin=0, | ||
end=10, | ||
convert_to_iter_based=True), | ||
dict( | ||
type='MultiStepLR', | ||
milestones=[700], | ||
by_epoch=True, | ||
begin=10, | ||
end=800, | ||
convert_to_iter_based=True) | ||
] | ||
|
||
# schedule | ||
train_cfg = dict(max_epochs=800) |
13 changes: 13 additions & 0 deletions
13
configs/selfsup/simmim/simmim_swin-large_16xb128-amp-coslr-800e_in1k-192.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,13 @@ | ||
_base_ = 'simmim_swin-base_16xb128-amp-coslr-800e_in1k-192.py' | ||
|
||
# model settings | ||
model = dict( | ||
backbone=dict( | ||
arch='L', | ||
stage_cfgs=dict(block_cfgs=dict(window_size=12)), | ||
pad_small_map=True), | ||
neck=dict(type='SimMIMNeck', in_channels=192 * 2**3, encoder_stride=32), | ||
head=dict( | ||
type='SimMIMHead', | ||
patch_size=4, | ||
loss=dict(type='SimMIMReconstructionLoss', encoder_in_channels=3))) |
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