Giter Club home page Giter Club logo

Comments (8)

haofanwang avatar haofanwang commented on June 14, 2024 4

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.

wly-ai-bj avatar wly-ai-bj commented on June 14, 2024 1

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

Thank you!!

from inswapper.

wly-ai-bj avatar wly-ai-bj commented on June 14, 2024

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.

usamaa-saleem avatar usamaa-saleem commented on June 14, 2024

Yes, #8 (comment) this helped.

from inswapper.

wly-ai-bj avatar wly-ai-bj commented on June 14, 2024

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.

usamaa-saleem avatar usamaa-saleem commented on June 14, 2024

Try installing opencv-python==4.6.0.66

from inswapper.

wly-ai-bj avatar wly-ai-bj commented on June 14, 2024

Try installing opencv-python==4.6.0.66

The same error.
Too strange!!!

from inswapper.

ashleykleynhans avatar ashleykleynhans commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.