Skip to content
Snippets Groups Projects
mae-base_upernet_8xb2-amp-160k_ade20k-512x512-ms.py 686 B
Newer Older
_base_ = './mae-base_upernet_8xb2-amp-160k_ade20k-512x512.py'
Yuan Liu's avatar
Yuan Liu committed

test_pipeline = [
    dict(type='LoadImageFromFile'),
    # TODO: Refactor 'MultiScaleFlipAug' which supports
    # `min_size` feature in `Resize` class
    # img_ratios is [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
    # original image scale is (2048, 512)
    dict(type='Resize', scale=(2048, 512), keep_ratio=True),
    # add loading annotation after ``Resize`` because ground truth
    # does not need to do resize data transform
    dict(type='LoadAnnotations', reduce_zero_label=True),
Yuan Liu's avatar
Yuan Liu committed
]
val_dataloader = dict(batch_size=1, dataset=dict(pipeline=test_pipeline))
test_dataloader = val_dataloader