From da18292c3dc24d09d79ee001a0bef055e1faa832 Mon Sep 17 00:00:00 2001 From: discountchubbs Date: Sat, 5 Sep 2026 09:53:04 -0700 Subject: [PATCH] remove realized frame --- openpilot/sunnypilot/modeld_v2/compile_modeld.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openpilot/sunnypilot/modeld_v2/compile_modeld.py b/openpilot/sunnypilot/modeld_v2/compile_modeld.py index a274097563..6f27afebef 100755 --- a/openpilot/sunnypilot/modeld_v2/compile_modeld.py +++ b/openpilot/sunnypilot/modeld_v2/compile_modeld.py @@ -157,9 +157,7 @@ def make_warp(nv12: NV12Frame, model_w: int, model_h: int): def warp(tfm, big_tfm, frame, big_frame): tfm = tfm.to(Device.DEFAULT) big_tfm = big_tfm.to(Device.DEFAULT) - frame = frame.to(Device.DEFAULT) - big_frame = big_frame.to(Device.DEFAULT) - Tensor.realize(tfm, big_tfm, frame, big_frame) + Tensor.realize(tfm, big_tfm) warped_frame = frame_prepare(frame, tfm).unsqueeze(0) warped_big_frame = frame_prepare(big_frame, big_tfm).unsqueeze(0)