|
|
|
@ -134,7 +134,7 @@ def get_driverstate_packet(model_output: np.ndarray, frame_id: int, location_ts: |
|
|
|
|
|
|
|
|
|
def main(): |
|
|
|
|
setproctitle(PROCESS_NAME) |
|
|
|
|
config_realtime_process([0, 1, 2, 3], 5) |
|
|
|
|
config_realtime_process(7, 5) |
|
|
|
|
|
|
|
|
|
sentry.set_tag("daemon", PROCESS_NAME) |
|
|
|
|
cloudlog.bind(daemon=PROCESS_NAME) |
|
|
|
@ -173,6 +173,9 @@ def main(): |
|
|
|
|
model_output, gpu_execution_time = model.run(buf, calib, model_transform) |
|
|
|
|
t2 = time.perf_counter() |
|
|
|
|
|
|
|
|
|
# run one more time, just for the load |
|
|
|
|
model.run(buf, calib, model_transform) |
|
|
|
|
|
|
|
|
|
pm.send("driverStateV2", get_driverstate_packet(model_output, vipc_client.frame_id, vipc_client.timestamp_sof, t2 - t1, gpu_execution_time)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|