mirror of https://github.com/AlexeyAB/darknet.git
minor fix
This commit is contained in:
parent
a02b5b83a6
commit
ecace9a36d
|
@ -344,12 +344,12 @@ void demo(char *cfgfile, char *weightfile, float thresh, float hier_thresh, int
|
|||
}
|
||||
|
||||
while (custom_atomic_load_int(&run_detect_in_thread)) {
|
||||
if(avg_fps > 180) this_thread_yield();
|
||||
if(avg_fps > 50) this_thread_yield();
|
||||
else this_thread_sleep_for(thread_wait_ms); // custom_join(detect_thread, 0);
|
||||
}
|
||||
if (!benchmark) {
|
||||
while (custom_atomic_load_int(&run_fetch_in_thread)) {
|
||||
if (avg_fps > 180) this_thread_yield();
|
||||
if (avg_fps > 50) this_thread_yield();
|
||||
else this_thread_sleep_for(thread_wait_ms); // custom_join(fetch_thread, 0);
|
||||
}
|
||||
free_image(det_s);
|
||||
|
|
Loading…
Reference in New Issue