Giter VIP home page Giter VIP logo

cvcuda_facestorehelper-release's Introduction

Psyche AI Inc release

CVCUDA_FaceStoreHelper

CVCUDA version of FaceStoreHelper, suitable for super-resolution, face restoration, and other face extraction and reattachment procedures.

License โ†—

Project Introduction

This project is designed to extract faces from images, perform image restoration/super-resolution operations, and then merge the restored face back into the original image. The code provides a simple, fast, and accurate method for face extraction and merging back into the original image, suitable for various application scenarios.

We have undertaken a comprehensive rewrite of the original OpenCV implementation, replacing all serial CPU operations with their corresponding CVCUDA operators. This optimization enables our project to leverage the power of GPU acceleration, resulting in significantly improved performance and efficiency in computer vision tasks. By harnessing CVCUDA's capabilities, we have successfully enhanced the processing speed of our application, providing a more responsive and robust user experience.

Features

  • Widely applicable for post-processing of face image super-resolution/restoration networks, such as GFPGAN and CodeFormer.

Quick Start

Install Dependencies

Before running this project, please make sure the following dependencies are installed:

pip install nvcv_python-0.3.1-cp38-cp38-linux_x86_64.whl

Downloading pretraining models

download the checkpoints and put it into ./checkpoint link: https://pan.baidu.com/s/1ZPfLnXS5oGDawqualhXCrQ?pwd=psya password: psya

Usage Example

  1. Clone this repository:
git clone https://github.com/your-username/your-repo.git
  1. Enter the project directory:
cd your-repo
  1. Run the script:

Generate resource packs that provide codeformer with the necessary face landmarks and affine transformation matrices

python gen_resource_pkg.py

inference with cvcuda accelerated codeformer network

python cvcuda_facestorehelper.py --input_path = your_images_path
  1. The program will save the images with extracted faces in the specified path and draw the restored faces on the original images.

Contribution

  • If you encounter any problems, you can report them in this project's GitHub Issue.
  • If you want to contribute code, please follow these steps:
    1. Clone this repository.
    2. Create a new branch:
      git checkout -b new-feature
    3. Make changes and commit:
      git commit -m 'Add some feature'
    4. Push to the remote branch:
      git push origin new-feature
    5. Submit a pull request.

License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. Please read the LICENSE file for more information.

Authors

Code contributor: Junli Deng, Xueting Yang, Xiaotian Ren

Acknowledgments

This project incorporates the following methods:

  1. CVCUDA: Project Link

  2. GFPGAN: Project Link

  3. CodeFormer: Project Link

Invitation

We invite you to join Psyche AI Inc to conduct cutting-edge research and business implementation together. At Psyche AI Inc, we are committed to pushing the boundaries of what's possible in the fields of artificial intelligence and computer vision, especially their applications in avatars. As a member of our team, you will have the opportunity to collaborate with talented individuals, innovate new ideas, and contribute to projects that have a real-world impact.

If you are passionate about working on the forefront of technology and making a difference, we would love to hear from you. Please visit our website at Psyche AI Inc to learn more about us and to apply for open positions. You can also contact us by [email protected].

Let's shape the future together!!

cvcuda_facestorehelper-release's People

Contributors

cucdengjunli avatar fanzhaoxin666 avatar

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.