Update inference_video.py

This commit is contained in:
hzwer
2021-12-07 10:56:31 +08:00
committed by GitHub
parent 4b09a9aa8d
commit 66a4e2917e
+1 -1
View File
@@ -193,7 +193,7 @@ def pad_image(img):
if args.montage:
left = w // 4
w = w // 2
tmp = max(64, int(64 / args.scale))
tmp = max(128, int(128 / args.scale))
ph = ((h - 1) // tmp + 1) * tmp
pw = ((w - 1) // tmp + 1) * tmp
padding = (0, pw - w, 0, ph - h)