Skip to content

Commit

Permalink
feat:lvis minival
Browse files Browse the repository at this point in the history
  • Loading branch information
LutingWang committed Oct 16, 2024
1 parent 4d47a7c commit 65685d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configs/dp/datasets/lvis.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
dataset=dict(
type=dataset_type,
data_root=data_root,
ann_file='annotations/lvis_v1_val.1203.json',
ann_file='annotations/lvis_v1_minival.1203.json',
data_prefix=dict(img=''),
test_mode=True,
pipeline=test_pipeline,
Expand All @@ -80,7 +80,7 @@

val_evaluator = dict(
type='LVISMetric',
ann_file=data_root + 'annotations/lvis_v1_val.1203.json',
ann_file=data_root + 'annotations/lvis_v1_minival.1203.json',
metric=['bbox'],
backend_args=None,
)
Expand Down
2 changes: 2 additions & 0 deletions oadp/dp/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def from_cfg(cls, config: Config, **kwargs) -> Runner: # noqa: E501 pylint: dis
if Store.DRY_RUN:
config.train_dataloader.num_workers = 0
config.train_dataloader.persistent_workers = False
config.val_dataloader.num_workers = 0
config.val_dataloader.persistent_workers = False

if config.pop('autocast', False):
config.optim_wrapper.type = 'AmpOptimWrapper'
Expand Down

0 comments on commit 65685d6

Please sign in to comment.