Closed alex-rsk closed 1 week ago
We may consider to manage them with env vars
Most probably, we will not able to add these features soon. Still, requests are fair enough and worth to stay opened status.
I confirmed that yolo is using gpu with the current implementation if you have a gpu. So, you don't have to do anything for this task.
If you have many gpus and wanted to enforce specific one to be used, you can set the following env var.
export CUDA_VISIBLE_DEVICES=1
will handle confidence score with another environment variable
Description
I use Yolo8 as detector backend for DeepFace. Looking to sources I see that Yolo initialization lacks of parameters:
I'd like to fine tune Yolo8 params without overriding classes, for example, I'd want to run Yolo detector on GPU instead of CPU, so I need
device
parameter. Also it would be good to setup confidence, IoU and augment.Probably it should be some dictionary with parameters forwarding from DeepFace constructor to detector backend's.
Additional Info
No response