Skip to content

Commit 38f0b64

Browse files
author
machuofan
committed
small fix
1 parent 5511ad7 commit 38f0b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def main(args):
2727
unitok.eval()
2828

2929
preprocess = transforms.Compose([
30-
transforms.Resize(unitok_cfg.img_size),
30+
transforms.Resize(int(unitok_cfg.img_size * unitok_cfg.resize_ratio)),
3131
transforms.CenterCrop(unitok_cfg.img_size),
3232
transforms.ToTensor(), normalize_01_into_pm1,
3333
])

0 commit comments

Comments
 (0)