mmdetection
mmdetection copied to clipboard
How to use multiple ann_file in coco_instance?
train_dataloader = dict(
batch_size=2,
num_workers=2,
persistent_workers=True,
sampler=dict(type='DefaultSampler', shuffle=True),
batch_sampler=dict(type='AspectRatioBatchSampler'),
dataset=dict(
type=dataset_type,
data_root=data_root,
ann_file=[
data_root + "/mmdet/train/train_20230327.json",
data_root + "/mmdet/train/train_20230213.json",
data_root + "/mmdet/train/train.json",
]
data_prefix=dict(img=data_root + "/mmdet/train/images/"),
filter_cfg=dict(filter_empty_gt=True, min_size=32),
pipeline=train_pipeline,
backend_args=backend_args))
At the new version of mm-series, list of coco json files are not supported. What's the appropriate config?
@ccomkhj did you solve this ?
I believe this line is the source of the issue, which assumes the ann_file
and data_prefix['img']
are two str, instead of list.
@KleinYuan I couldn't solve this issue. Currently I merge coco file everytime, but I really hope that there's update to deal with multiple coco files.
train_dataloader = dict( batch_size=2, num_workers=2, persistent_workers=True, sampler=dict(type='DefaultSampler', shuffle=True), batch_sampler=dict(type='AspectRatioBatchSampler'), dataset=dict( type=dataset_type, data_root=data_root, ann_file=[ data_root + "/mmdet/train/train_20230327.json", data_root + "/mmdet/train/train_20230213.json", data_root + "/mmdet/train/train.json", ] data_prefix=dict(img=data_root + "/mmdet/train/images/"), filter_cfg=dict(filter_empty_gt=True, min_size=32), pipeline=train_pipeline, backend_args=backend_args))
At the new version of mm-series, list of coco json files are not supported. What's the appropriate config?
Hi, may I ask that, dose version mmdet==2.26.0 support multipul coco anno files?
train_dataloader = dict( batch_size=2, num_workers=2, persistent_workers=True, sampler=dict(type='DefaultSampler', shuffle=True), batch_sampler=dict(type='AspectRatioBatchSampler'), dataset=dict( type=dataset_type, data_root=data_root, ann_file=[ data_root + "/mmdet/train/train_20230327.json", data_root + "/mmdet/train/train_20230213.json", data_root + "/mmdet/train/train.json", ] data_prefix=dict(img=data_root + "/mmdet/train/images/"), filter_cfg=dict(filter_empty_gt=True, min_size=32), pipeline=train_pipeline, backend_args=backend_args))
At the new version of mm-series, list of coco json files are not supported. What's the appropriate config?
Hi, may I ask that, dose version mmdet==2.26.0 support multipul coco anno files?
Yes, it does.
Greetings! Is there any update on this issue?
Greetings! Is there any update on this issue?
I created another solution to merge coco sustainably. https://github.com/ccomkhj/cvops