I trained Yolov4 on a custom dataset with 2 powerful gpus. Now I would like to use a specific of the two gpus for detection, but I cannot find the code snippet where the GPU is chosen for detection. Is it inside the .so-file?
Can I specify it at the beginning of my code?
you just have to add the line "lib.cuda_set_device(x)" in the detector initialization with x as your GPU id and the detector will work with the specific GPU.
Hi guys,
I trained Yolov4 on a custom dataset with 2 powerful gpus. Now I would like to use a specific of the two gpus for detection, but I cannot find the code snippet where the GPU is chosen for detection. Is it inside the .so-file? Can I specify it at the beginning of my code?
I would really appreciate your help.
Best regards, Simon