-
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.
MMGroundingDINO-A replicable and more comprehensive GroundingDINO (#1…
…1295) Co-authored-by: Cycyes <92714336+Cycyes@users.noreply.github.com>
- Loading branch information
1 parent
ee2e542
commit dfffb99
Showing
89 changed files
with
8,953 additions
and
187 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
61 changes: 61 additions & 0 deletions
61
.../glip/flickr30k/glip_atss_swin-t_c_fpn_dyhead_pretrain_obj365-goldg_zeroshot_flickr30k.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,61 @@ | ||
_base_ = '../glip_atss_swin-t_a_fpn_dyhead_pretrain_obj365.py' | ||
|
||
lang_model_name = 'bert-base-uncased' | ||
|
||
model = dict(bbox_head=dict(early_fuse=True), ) | ||
|
||
dataset_type = 'Flickr30kDataset' | ||
data_root = 'data/flickr30k/' | ||
|
||
test_pipeline = [ | ||
dict( | ||
type='LoadImageFromFile', backend_args=None, | ||
imdecode_backend='pillow'), | ||
dict( | ||
type='FixScaleResize', | ||
scale=(800, 1333), | ||
keep_ratio=True, | ||
backend='pillow'), | ||
dict(type='LoadAnnotations', with_bbox=True), | ||
dict( | ||
type='PackDetInputs', | ||
meta_keys=('img_id', 'img_path', 'ori_shape', 'img_shape', | ||
'scale_factor', 'text', 'custom_entities', | ||
'tokens_positive', 'phrase_ids', 'phrases')) | ||
] | ||
|
||
dataset_Flickr30k_val = dict( | ||
type=dataset_type, | ||
data_root=data_root, | ||
ann_file='mdetr_annotations/final_flickr_separateGT_val.json', | ||
data_prefix=dict(img='flickr30k_images/'), | ||
pipeline=test_pipeline, | ||
) | ||
|
||
dataset_Flickr30k_test = dict( | ||
type=dataset_type, | ||
data_root=data_root, | ||
ann_file='mdetr_annotations/final_flickr_separateGT_test.json', | ||
data_prefix=dict(img='flickr30k_images/'), | ||
pipeline=test_pipeline, | ||
) | ||
|
||
val_evaluator_Flickr30k = dict(type='Flickr30kMetric', ) | ||
|
||
test_evaluator_Flickr30k = dict(type='Flickr30kMetric', ) | ||
|
||
# ----------Config---------- # | ||
dataset_prefixes = ['Flickr30kVal', 'Flickr30kTest'] | ||
datasets = [dataset_Flickr30k_val, dataset_Flickr30k_test] | ||
metrics = [val_evaluator_Flickr30k, test_evaluator_Flickr30k] | ||
|
||
val_dataloader = dict( | ||
dataset=dict(_delete_=True, type='ConcatDataset', datasets=datasets)) | ||
test_dataloader = val_dataloader | ||
|
||
val_evaluator = dict( | ||
_delete_=True, | ||
type='MultiDatasetsEvaluator', | ||
metrics=metrics, | ||
dataset_prefixes=dataset_prefixes) | ||
test_evaluator = val_evaluator |
2 changes: 1 addition & 1 deletion
2
...s_swin-t_a_fpn_dyhead_pretrain_odinw13.py → ...s_swin-t_a_fpn_dyhead_pretrain_odinw13.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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.