Skip to content

Commit 63039cc

Browse files
committed
fix preprocessing cv2 resize (w,h) order
1 parent bc4ea40 commit 63039cc

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

cv_flow.py

Whitespace-only changes.

flow_vis.py

Whitespace-only changes.

utils/yolo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def preprocess_test(data):
8787

8888
if inp_size is not None:
8989
w, h = inp_size
90-
im = cv2.resize(im, (h, w))
90+
im = cv2.resize(im, (w, h))
9191
im = cv2.cvtColor(im, cv2.COLOR_BGR2RGB)
9292
im = im / 255.
9393

0 commit comments

Comments
 (0)