lvis_v1_instance.py 656 B

12345678910111213141516171819202122
  1. # dataset settings
  2. _base_ = 'lvis_v0.5_instance.py'
  3. dataset_type = 'LVISV1Dataset'
  4. data_root = 'data/lvis_v1/'
  5. train_dataloader = dict(
  6. dataset=dict(
  7. dataset=dict(
  8. type=dataset_type,
  9. data_root=data_root,
  10. ann_file='annotations/lvis_v1_train.json',
  11. data_prefix=dict(img=''))))
  12. val_dataloader = dict(
  13. dataset=dict(
  14. type=dataset_type,
  15. data_root=data_root,
  16. ann_file='annotations/lvis_v1_val.json',
  17. data_prefix=dict(img='')))
  18. test_dataloader = val_dataloader
  19. val_evaluator = dict(ann_file=data_root + 'annotations/lvis_v1_val.json')
  20. test_evaluator = val_evaluator