Fix updated image size not used (#739)
Co-authored-by: magangloff <71378343+magangloff@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2e99efb27f
commit
b1850c7dca
@@ -59,7 +59,7 @@ def test(data,
|
||||
imgsz = check_img_size(imgsz, s=gs) # check img_size
|
||||
|
||||
if trace:
|
||||
model = TracedModel(model, device, opt.img_size)
|
||||
model = TracedModel(model, device, imgsz)
|
||||
|
||||
# Half
|
||||
half = device.type != 'cpu' and half_precision # half precision only supported on CUDA
|
||||
|
||||
Reference in New Issue
Block a user