deep-head-pose icon indicating copy to clipboard operation
deep-head-pose copied to clipboard

Run command field information?

Open yghcats opened this issue 6 years ago • 7 comments

python code / test_on_video_dockerface.py --snapshot ./hopenet_robust_alpha1.pkl --video ./video/1.mp4 --bboxes FACE_BOUNDING_BOX_ANNOTATIONS --output_string new_output --n_frames 2000 --fps 20

  1. please, Parameters:FACE_BOUNDING_BOX_ANNOTATIONS How to Write?

  2. error info: from torch.utils.serialization import load_lua ImportError: No module named serialization

torch is version?

yghcats avatar Dec 26 '18 02:12 yghcats

pip install torch==0.4.1

sumsuddin avatar Jan 02 '19 07:01 sumsuddin

@natanielruiz please help me with "Parameters:FACE_BOUNDING_BOX_ANNOTATIONS How to Write?"

jack17529 avatar Jan 20 '19 19:01 jack17529

It's an annotation file, If you have a custom face detector other than dlib you can generate the bounding boxes and save them into a file. If you're not sure, just use the dlib model.

python code/test_on_video_dlib.py --snapshot PATH_OF_SNAPSHOT --face_model PATH_OF_DLIB_MODEL --video PATH_OF_VIDEO --output_string STRING_TO_APPEND_TO_OUTPUT --n_frames N_OF_FRAMES_TO_PROCESS --fps FPS_OF_SOURCE_VIDEO

Download the dlib face model extract it and point the .dat file as PATH_OF_DLIB_MODEL

sumsuddin avatar Jan 21 '19 04:01 sumsuddin

@sumsuddin thanks for the help, but can this project do head pose estimation in real time on my face through a camera, instead of uploading a video file. The project I want to use it on outputs predictions on a person sitting in front of camera.

Thank You

jack17529 avatar Jan 21 '19 07:01 jack17529

You can add any webcam using opencv and get the prediction with just a little bit of tweaking.

But in my experience, it's a bit slow to be fully realtime, at least on my Nvidia-1050ti GPU it was about 5 to 6 FPS as far as I remember.

sumsuddin avatar Jan 21 '19 07:01 sumsuddin

@sumsuddin thanks for such quick response, I am AMD card user so is/are there any other alternative to this project? All I want is the head pose estimation to be as accurate as possible and in real time as my calculations depend on it.

Thank You

jack17529 avatar Jan 21 '19 08:01 jack17529

Can you share your --bboxes FACE_BOUNDING_BOX_ANNOTATIONS files?

Thank You

Zhang-KL avatar Sep 05 '19 02:09 Zhang-KL