Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'face_alignment' in V1 #166

Open
BCL123456-BAL opened this issue Nov 20, 2022 · 3 comments
Open

No module named 'face_alignment' in V1 #166

BCL123456-BAL opened this issue Nov 20, 2022 · 3 comments

Comments

@BCL123456-BAL
Copy link

I want to realize Images to Images Face Swapping, so I read Paper Models Inference.
First
I run 'python download_fsgan_models.py' and 'git checkout v1'
Then
I run the command '' python D:\Desktop\fsgan\inference\face_swap_images2images.py D:\Desktop\000015.jpg -t D:\Desktop\000012.jpg -o D:\desktop\output''
Finally
It throw the error ''ModuleNotFoundError: No module named 'face_alignment''
The image as follow:
image
The project in D:\Desktop, I set environment variable 'PYTHONPATH' = 'D:\Desktop'
l also search the module in the project file and conda packages, but the result show none.

@YuvalNirkin
Copy link
Owner

Add the package with the following command:
pip install face-alignment

I'll add it to the install configuration.

@BCL123456-BAL
Copy link
Author

I'm sorry to trouble you again.
It throws a new error ''AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)''.
Since I haven't had a deep understanding of the project, and the project is a big one, I can't solve this problem quickly through Google.
This is error image
image

@battlesaint
Copy link

I'm sorry to trouble you again. It throws a new error ''AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)''. Since I haven't had a deep understanding of the project, and the project is a big one, I can't solve this problem quickly through Google. This is error image image

pip install opencv-contrib-python --upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants