Commit 77e338d0 authored by dengjb's avatar dengjb
Browse files

Update coco_detection.py

parent 7836bc8b
# dataset settings
dataset_type = 'CocoDataset'
data_root = 'data/coco/'
data_root = 'data/'
# Example to use different file client
# Method 1: simply set the data root and let the file I/O module
......@@ -44,7 +44,7 @@ train_dataloader = dict(
type=dataset_type,
data_root=data_root,
ann_file='annotations/instances_train2017.json',
data_prefix=dict(img='train2017/'),
data_prefix=dict(img='images/train2017/'),
filter_cfg=dict(filter_empty_gt=True, min_size=32),
pipeline=train_pipeline,
backend_args=backend_args))
......@@ -58,7 +58,7 @@ val_dataloader = dict(
type=dataset_type,
data_root=data_root,
ann_file='annotations/instances_val2017.json',
data_prefix=dict(img='val2017/'),
data_prefix=dict(img='images/val2017/'),
test_mode=True,
pipeline=test_pipeline,
backend_args=backend_args))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment