From 2e4650e013498b0f91cf5d26add55ec72c1043b2 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 30 Jan 2020 12:40:05 -0800 Subject: [PATCH] updates --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index f77c1cdb..0b513f37 100755 --- a/models.py +++ b/models.py @@ -52,7 +52,7 @@ def create_modules(module_defs, img_size, arc): elif mdef['type'] == 'upsample': if ONNX_EXPORT: # explicitly state size, avoid scale_factor - g = (yolo_index + 1) * 2 + g = (yolo_index + 1) * 2 # gain modules = nn.Upsample(size=(10 * g, 6 * g), mode='nearest') # assume img_size = (320, 192) else: modules = nn.Upsample(scale_factor=int(mdef['stride']), mode='nearest')