-
Notifications
You must be signed in to change notification settings - Fork 82
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
ModuleNotFoundError: No module named 'facelib.utils' #8
Comments
The facelib is inside CodeFormer. So first you need to git clone as instruction below and install libraries required by Codeformer.
and add the dir into your path, then you can import it.
@usamaa-saleem Hope this helps. |
I met the same error, do you solve it??? |
Yes, #8 (comment) this helped. |
I command as follows: git lfs install
git clone https://huggingface.co/spaces/sczhou/CodeFormer Then, in the file of restoration.py ,add the code as follow: import sys
sys.path.append('../CodeFormer/CodeFormer') But , I still meth the error: "No module named 'facelib.utils'" So, do you make any other operations?? |
Try installing opencv-python==4.6.0.66 |
The same error. |
Which operating system is this? Was the On Ubuntu Linux: sudo apt update
sudo apt -y install git-lfs On Mac: brew install git-lfs |
Thank you!! |
I did import the codeformer as well and did everything as require, but still getting this error.
Traceback (most recent call last): File "swapper.py", line 228, in <module> from restoration import * File "/home/ubuntu/inswapper/restoration.py", line 12, in <module> from facelib.utils.face_restoration_helper import FaceRestoreHelper ModuleNotFoundError: No module named 'facelib.utils'
The text was updated successfully, but these errors were encountered: