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