hhj1897 / face_pose_augmentation

MIT License
116 stars 19 forks source link

No module named 'pyFaceFrontalization' #11

Closed danii92 closed 1 year ago

danii92 commented 2 years ago

Hi @hhj1897 :

thank you for sharing this project..

kindly i need your help to identify the problem i face when running "python face_pose_augmentation_test.py [-i webcam_index]",

cause i get error "No module named 'pyFaceFrontalization'"...

1- I notice that you use a .pyx file and import it right away without compilation (from .pyx to .pyd) ..

2- I try to compile "pyFaceFrontalization.pyx" to ".pyd" to import it as usual , but compilation failed with some errors..

your feedback is highly appreciated..thanks

hhj1897 commented 1 year ago

We use Cython to handle the compilation of the C++ code. Compilation is done by the setup script (when you run "pip install -e ."). For this to work, you will usually need to have GCC + CMake (Linux) or Visual Studio Build Tools (Windows) installed on your machine.

danii92 commented 1 year ago

Hi @hhj1897 :

thank you for your support , the problem solved after running "pip install -e ."

can i run the all (p, y, r) with related value as one process on a folder of images ?

thanks again

hhj1897 commented 1 year ago

Yes, you can change yaw, pitch, and roll in one go. But this is not advised. Please see my reply in issue #14 .