Views
No views yet
PRNet_3D.obj file that contains the 3D mesh representation of the input 2D image..obj file of the reconstructed face.1from your_project_module import PRN
2import numpy as np
3from skimage.io import imread
4
5prn = PRN(is_dlib=False) # Initialize the model without dlib
6image = imread('path_to_image.jpg')
7image = resize(image, (256, 256)) # Resize image to 256x256
8
9# Process and generate 3D vertices
10pos = prn.net_forward(image / 255.0)
11vertices = prn.get_vertices(pos)@misc{prnet_3d_finetuned,
title={PRNet 3D Face Reconstruction Finetuned Model},
author={Mostafa Aly},
year={2024},
howpublished={\url{https://huggingface.co/your-hf-username/PRNet_3D}},
}README.md) in the repository."your-hf-username" and "path_to_image.jpg" to your own project details.