Using yolo v7 detect face
git clone https://github.com/conggalam12/Yolo-v7.git
pip install -r requirements.txt
mkdir weights
cd weights
wget https://github.com/conggalam12/Yolo-v7/releases/download/weights/face_detection.pt
python detect.py --source [path_image] --weights [path to weight]
The result save in folder run/detect
python detect.py --source [path_image] --weights [path to weight] --project [path to folder]