mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-23 07:52:06 +08:00
dmonitoring: use sizeof(float) instead of hardcorded size (#28963)
old-commit-hash: 8dcd92253b
This commit is contained in:
@@ -93,7 +93,7 @@ DMonitoringModelResult dmonitoring_eval_frame(DMonitoringModelState* s, void* st
|
||||
// fclose(dump_yuv_file);
|
||||
|
||||
double t1 = millis_since_boot();
|
||||
s->m->setInputBuffer("input_imgs", (float*)net_input_buf, yuv_buf_len / 4);
|
||||
s->m->setInputBuffer("input_imgs", (float*)net_input_buf, yuv_buf_len / sizeof(float));
|
||||
for (int i = 0; i < CALIB_LEN; i++) {
|
||||
s->calib[i] = calib[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user