-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support LVIS chunked evaluation and image chunked inference of GLIP (#…
- Loading branch information
1 parent
4a516c3
commit 51f8aee
Showing
11 changed files
with
730 additions
and
62 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
12 changes: 12 additions & 0 deletions
12
configs/glip/lvis/glip_atss_swin-l_fpn_dyhead_pretrain_zeroshot_lvis.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,12 @@ | ||
_base_ = './glip_atss_swin-t_a_fpn_dyhead_pretrain_zeroshot_lvis.py' | ||
|
||
model = dict( | ||
backbone=dict( | ||
embed_dims=192, | ||
depths=[2, 2, 18, 2], | ||
num_heads=[6, 12, 24, 48], | ||
window_size=12, | ||
drop_path_rate=0.4, | ||
), | ||
neck=dict(in_channels=[384, 768, 1536]), | ||
bbox_head=dict(early_fuse=True, num_dyhead_blocks=8)) |
12 changes: 12 additions & 0 deletions
12
configs/glip/lvis/glip_atss_swin-l_fpn_dyhead_pretrain_zeroshot_mini-lvis.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,12 @@ | ||
_base_ = './glip_atss_swin-t_a_fpn_dyhead_pretrain_zeroshot_mini-lvis.py' | ||
|
||
model = dict( | ||
backbone=dict( | ||
embed_dims=192, | ||
depths=[2, 2, 18, 2], | ||
num_heads=[6, 12, 24, 48], | ||
window_size=12, | ||
drop_path_rate=0.4, | ||
), | ||
neck=dict(in_channels=[384, 768, 1536]), | ||
bbox_head=dict(early_fuse=True, num_dyhead_blocks=8)) |
24 changes: 24 additions & 0 deletions
24
configs/glip/lvis/glip_atss_swin-t_a_fpn_dyhead_pretrain_zeroshot_lvis.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 @@ | ||
_base_ = '../glip_atss_swin-t_a_fpn_dyhead_pretrain_obj365.py' | ||
|
||
model = dict(test_cfg=dict( | ||
max_per_img=300, | ||
chunked_size=40, | ||
)) | ||
|
||
dataset_type = 'LVISV1Dataset' | ||
data_root = 'data/coco/' | ||
|
||
val_dataloader = dict( | ||
dataset=dict( | ||
data_root=data_root, | ||
type=dataset_type, | ||
ann_file='annotations/lvis_od_val.json', | ||
data_prefix=dict(img=''))) | ||
test_dataloader = val_dataloader | ||
|
||
# numpy < 1.24.0 | ||
val_evaluator = dict( | ||
_delete_=True, | ||
type='LVISFixedAPMetric', | ||
ann_file=data_root + 'annotations/lvis_od_val.json') | ||
test_evaluator = val_evaluator |
25 changes: 25 additions & 0 deletions
25
configs/glip/lvis/glip_atss_swin-t_a_fpn_dyhead_pretrain_zeroshot_mini-lvis.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,25 @@ | ||
_base_ = '../glip_atss_swin-t_a_fpn_dyhead_pretrain_obj365.py' | ||
|
||
model = dict(test_cfg=dict( | ||
max_per_img=300, | ||
chunked_size=40, | ||
)) | ||
|
||
dataset_type = 'LVISV1Dataset' | ||
data_root = 'data/coco/' | ||
|
||
val_dataloader = dict( | ||
dataset=dict( | ||
data_root=data_root, | ||
type=dataset_type, | ||
ann_file='annotations/lvis_v1_minival_inserted_image_name.json', | ||
data_prefix=dict(img=''))) | ||
test_dataloader = val_dataloader | ||
|
||
# numpy < 1.24.0 | ||
val_evaluator = dict( | ||
_delete_=True, | ||
type='LVISFixedAPMetric', | ||
ann_file=data_root + | ||
'annotations/lvis_v1_minival_inserted_image_name.json') | ||
test_evaluator = val_evaluator |
3 changes: 3 additions & 0 deletions
3
configs/glip/lvis/glip_atss_swin-t_bc_fpn_dyhead_pretrain_zeroshot_lvis.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,3 @@ | ||
_base_ = './glip_atss_swin-t_a_fpn_dyhead_pretrain_zeroshot_lvis.py' | ||
|
||
model = dict(bbox_head=dict(early_fuse=True)) |
3 changes: 3 additions & 0 deletions
3
configs/glip/lvis/glip_atss_swin-t_bc_fpn_dyhead_pretrain_zeroshot_mini-lvis.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,3 @@ | ||
_base_ = './glip_atss_swin-t_a_fpn_dyhead_pretrain_zeroshot_mini-lvis.py' | ||
|
||
model = dict(bbox_head=dict(early_fuse=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
Oops, something went wrong.