Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct Resize pipeline #211

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update imagenet_rgb.py
  • Loading branch information
makecent committed Jan 10, 2022
commit e98d5b88bbd32b6179452101715447704c65f7f6
2 changes: 1 addition & 1 deletion configs/_base_/datasets/imagenet_rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='Resize', size=(256, -1), backend='pillow'),
dict(type='Resize', size=(-1, 256), backend='pillow'),
makecent marked this conversation as resolved.
Show resolved Hide resolved
dict(type='CenterCrop', crop_size=224),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
Expand Down