Comments (8)
The facelib is inside CodeFormer. So first you need to git clone as instruction below and install libraries required by Codeformer.
git lfs install
git clone https://huggingface.co/spaces/sczhou/CodeFormer
and add the dir into your path, then you can import it.
import sys
sys.path.append('./CodeFormer/CodeFormer')
@usamaa-saleem Hope this helps.
from inswapper.
Yes, #8 (comment) this helped.
I command as follows: first, clone CodeFormer in the directory out of inswapper;
git lfs install git clone https://huggingface.co/spaces/sczhou/CodeFormerWhich operating system is this? Was the
git lfs install
command actually successful? Usually it requires thegit-lfs
package to be installed in your Operating System.On Ubuntu Linux:
sudo apt update sudo apt -y install git-lfsOn Mac:
brew install git-lfs
Thank you!!
from inswapper.
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'
I met the same error, do you solve it???
from inswapper.
Yes, #8 (comment) this helped.
from inswapper.
Yes, #8 (comment) this helped.
I command as follows:
first, clone CodeFormer in the directory out of inswapper;
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??
from inswapper.
Try installing opencv-python==4.6.0.66
from inswapper.
Try installing opencv-python==4.6.0.66
The same error.
Too strange!!!
from inswapper.
Yes, #8 (comment) this helped.
I command as follows: first, clone CodeFormer in the directory out of inswapper;
git lfs install git clone https://huggingface.co/spaces/sczhou/CodeFormer
Which operating system is this? Was the git lfs install
command actually successful? Usually it requires the git-lfs
package to be installed in your Operating System.
On Ubuntu Linux:
sudo apt update
sudo apt -y install git-lfs
On Mac:
brew install git-lfs
from inswapper.
Related Issues (12)
- IndexError: list index out of range | of source_indexes and target_indexes HOT 3
- ModuleNotFoundError: No module named 'basicsr.utils.realesrgan_utils' HOT 5
- cudnn_adv_infer64_8.dll or one of its dependencies issue.
- is it possible to use it on videos ? HOT 3
- IndexError: list index out of range (not duplicated) HOT 2
- Information regarding Inswapper model HOT 2
- Exception: Unsupported face configuration
- ERROR Unsupported face configuration HOT 1
- environment pip freeze needed HOT 2
- Why does the program terminate when I run in the codespace? HOT 2
- Basicsr and Facelib issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inswapper.