This is basic introduction for how to use PRNet for generating 3D vertices, depth map from 2D frames and cropping faces from pictures.
-
Clone the repository:
git clone https://github.com/YadiraF/PRNet
cd PRNet
-
Download the PRN trained model at Pretrained Model, and put it into Data/net-data
-
Generate 3D vertices and depth map
python get_depth_buffer.py
-
Crop face from frames
python crop_face.py
-
Frontalize 3D faces
`python frontalize_face.py'