Skip to content

Commit 4585e93

Browse files
authored
dmonitoringmodeld: fix YUV padding (#38091)
1 parent 5af7279 commit 4585e93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

selfdrive/modeld/compile_dm_warp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def make_warp_dm(nv12: NV12Frame, dm_w, dm_h):
1818
def warp_dm(input_frame, M_inv):
1919
M_inv = M_inv.to(Device.DEFAULT).realize()
2020
return warp_perspective_tinygrad(input_frame[:cam_h*stride], M_inv,
21-
(dm_w, dm_h), (cam_h, cam_w), stride_pad, border_fill_val=0).reshape(-1, dm_h * dm_w)
21+
(dm_w, dm_h), (cam_h, cam_w), stride_pad, border_fill_val=16).reshape(-1, dm_h * dm_w) # Y
2222
return warp_dm
2323

2424

0 commit comments

Comments
 (0)