From 327f6ee4766a6bf0da7d115e50e1ce2c1c5a49a0 Mon Sep 17 00:00:00 2001 From: hzwer <598460606@163.com> Date: Thu, 17 Jun 2021 17:49:03 +0800 Subject: [PATCH] Add adaptive scale --- inference_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inference_video.py b/inference_video.py index d5b33bd..7a76563 100644 --- a/inference_video.py +++ b/inference_video.py @@ -179,7 +179,7 @@ def pad_image(img): if args.montage: left = w // 4 w = w // 2 -tmp = max(32, int(32 / args.scale)) +tmp = max(64, int(64 / args.scale)) ph = ((h - 1) // tmp + 1) * tmp pw = ((w - 1) // tmp + 1) * tmp padding = (0, pw - w, 0, ph - h)