Giter Club home page Giter Club logo

Comments (6)

xinntao avatar xinntao commented on July 28, 2024

Did you mean that you want to paste restored face (from other sources) to the images upsampled by real-esrgan?

from gfpgan.

NoUserNameForYou avatar NoUserNameForYou commented on July 28, 2024

"(from other sources)"

Doesn't matter but also that, yes.

If I used gfpgan without paste back, I would like to continue with just pasteback without any restoration from beginning.

from gfpgan.

xinntao avatar xinntao commented on July 28, 2024

I think you can modify https://github.com/xinntao/facexlib/blob/master/facexlib/utils/face_restoration_helper.py

An easy way is to change the value face_helper.restored_faces with restored faces from other sources.

from gfpgan.

NoUserNameForYou avatar NoUserNameForYou commented on July 28, 2024

There's no "face_helper.restored_faces" in the code, I ctrl+f and searched.

from gfpgan.

xinntao avatar xinntao commented on July 28, 2024

Sorry for the misunderstanding.

I mean in your script, you can re-set the restored_faces, for example:

...
face_helper = FaceRestoreHelper()

face_helper.read_img()
face_helper.get_face_landmarks_5()
face_helper.align_warp_face()
...
face_helper.restored_faces = #your custom restored faces#
...
face_helper.paste_faces_to_input_image()




from gfpgan.

NoUserNameForYou avatar NoUserNameForYou commented on July 28, 2024

Thank you, will try it later.

from gfpgan.

Related Issues (20)

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.