mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed wait_stream flag, for compilation without GPU
This commit is contained in:
@ -180,11 +180,12 @@ YOLODLL_API std::vector<bbox_t> Detector::detect(image_t img, float thresh, bool
|
|||||||
cudaGetDevice(&old_gpu_index);
|
cudaGetDevice(&old_gpu_index);
|
||||||
if(cur_gpu_id != old_gpu_index)
|
if(cur_gpu_id != old_gpu_index)
|
||||||
cudaSetDevice(net.gpu_index);
|
cudaSetDevice(net.gpu_index);
|
||||||
|
|
||||||
|
net.wait_stream = wait_stream; // 1 - wait CUDA-stream, 0 - not to wait
|
||||||
#endif
|
#endif
|
||||||
//std::cout << "net.gpu_index = " << net.gpu_index << std::endl;
|
//std::cout << "net.gpu_index = " << net.gpu_index << std::endl;
|
||||||
|
|
||||||
//float nms = .4;
|
//float nms = .4;
|
||||||
net.wait_stream = wait_stream; // 1 - wait CUDA-stream, 0 - not to wait
|
|
||||||
|
|
||||||
image im;
|
image im;
|
||||||
im.c = img.c;
|
im.c = img.c;
|
||||||
|
Reference in New Issue
Block a user