pull/24762/head
ZwX1616 3 years ago
parent 7dd71cc63d
commit ac6ab2ddc7
  1. 4
      models/dmonitoring_model_q.dlc
  2. 2
      selfdrive/modeld/models/dmonitoring.cc

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:41901abff0e16e6c404627234cca68001fbd21f6961709a729a84a8d5e3cc56d oid sha256:7746fc59f1df43aa217279cdfb578ab1fb060096ce509c58674555e092c7aec7
size 1146001 size 3565748

@ -133,7 +133,7 @@ DMonitoringResult dmonitoring_eval_frame(DMonitoringModelState* s, void* stream_
mode); mode);
} }
int yuv_buf_len = (MODEL_WIDTH/2) * (MODEL_HEIGHT/2) * 6; // Y|u|v -> y|y|y|y|u|v int yuv_buf_len = (1024/2) * (640/2) * 6; // Y|u|v -> y|y|y|y|u|v
float *net_input_buf = get_buffer(s->net_input_buf, yuv_buf_len); float *net_input_buf = get_buffer(s->net_input_buf, yuv_buf_len);
// one shot conversion, O(n) anyway // one shot conversion, O(n) anyway
// yuvframe2tensor, normalize // yuvframe2tensor, normalize

Loading…
Cancel
Save