Update segformer.b5.640x640.ade.160k.py

pull/29/head
谢恩泽 2021-06-24 16:52:09 +08:00 committed by GitHub
parent b0304c4faa
commit a7c05dbc96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ test_pipeline = [
# img_ratios=[0.5, 0.75, 1.0, 1.25, 1.5, 1.75],
flip=False,
transforms=[
dict(type='AlignedResize', keep_ratio=True, size_divisor=32),
dict(type='AlignedResize', keep_ratio=True, size_divisor=32), # Ensure the long and short sides are divisible by 32
dict(type='RandomFlip'),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),