Fixed wait_stream flag, for compilation without GPU

This commit is contained in:
AlexeyAB
2018-01-17 12:56:51 +03:00
parent 270a38ecad
commit 5a2a567970

View File

@ -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;