Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liaogulou committed Oct 23, 2023
1 parent b898a79 commit b5ed643
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions configs/config_templates/yolox_itag.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,27 +91,31 @@
train_path = 'data/coco/train2017.manifest'
val_path = 'data/coco/val2017.manifest'

train_dataset=dict(
type='DetImagesMixDataset',
data_source=dict(
type='DetSourcePAI',
path=train_path,
classes=CLASSES),
pipeline=train_pipeline,
dynamic_scale=tuple(img_scale))

val_dataset=dict(
type='DetImagesMixDataset',
imgs_per_gpu=2,
data_source=dict(
type='DetSourcePAI',
path=val_path,
classes=CLASSES),
pipeline=test_pipeline,
dynamic_scale=None,
label_padding=False)

data = dict(
imgs_per_gpu=16,
workers_per_gpu=4,
train=dict(
type='DetImagesMixDataset',
data_source=dict(
type='DetSourcePAI',
path=train_path,
classes=CLASSES),
pipeline=train_pipeline,
dynamic_scale=tuple(img_scale)),
val=dict(
type='DetImagesMixDataset',
imgs_per_gpu=2,
data_source=dict(
type='DetSourcePAI',
path=val_path,
classes=CLASSES),
pipeline=test_pipeline,
dynamic_scale=None,
label_padding=False))
train=train_dataset,
val=val_dataset)

# additional hooks
interval = 10
Expand Down Expand Up @@ -149,7 +153,7 @@
eval_pipelines = [
dict(
mode='test',
data=data['val'],
data=val_dataset,
evaluators=[dict(type='CocoDetectionEvaluator', classes=CLASSES)],
)
]
Expand Down

0 comments on commit b5ed643

Please sign in to comment.