Giter Club home page Giter Club logo

gfpgan-ncnn-vulkan's Introduction

GFPGAN-ncnn-vulkan ๐Ÿš€

Windows Dev Build Ubuntu Dev Build Fedora Dev Build (RPM Vulkan) Fedora Dev Build (Lunar Vulkan SDK) pre-commit.ci status GitHub Open issue Closed issue GitHub pull requests cpp Github All Releases

Ncnn with Vulkan implementation of GFPGAN aims at developing Practical Algorithms for Real-world Face Restoration

This repository contains the code and pre-trained models for a real-world face restoration algorithm based on the GFPGAN method and optimized for mobile devices using the NCNN framework with a Vulkan backend.

The goal of this project is to develop practical algorithms that can restore the appearance of damaged or low-quality face images, such as those obtained from security cameras, old photographs, or social media profiles. The proposed approach combines the power of deep learning with the speed and efficiency of hardware acceleration, making it suitable for real-time applications on smartphones, drones, or robots.

Get Submodules

Make sure submodules are initialized and updated

git submodule update --init --recursive

Clone project with Submodules

git clone --recursive https://github.com/onuralpszr/GFPGAN-ncnn-vulkan.git

Project Prerequisites โš™๏ธ

  • CMake version 3.20 or later
  • C++17 or above with filesystem support
  • Clang-Tidy for code analysis (optional)
  • Threads library
  • Vulkan SDK
  • glslangValidator executable
  • OpenCV library
  • OpenMP library
  • ncnn library
  • libwebp library

Building ๐Ÿ› ๏ธ

Configure and build

mkdir -p build && cd build
cmake ..
cmake --build . --parallel $(($(nproc) - 1))

๐Ÿšง Model support ๐Ÿšง

  1. GFPGANCleanv1-NoCE-C2

TODO: ๐Ÿ“‘

  • Support ncnn-vulkan
  • Convert pth->onnx->ncnn
  • Model with colorization

References

  1. https://github.com/xinntao/Real-ESRGAN
  2. https://github.com/TencentARC/GFPGAN
  3. https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan
  4. https://github.com/Tencent/ncnn
  5. https://github.com/Tencent/ncnn/tree/master/tools/pnnx
  6. https://github.com/pnnx/pnnx
  7. https://github.com/deepcam-cn/yolov5-face
  8. https://github.com/derronqi/yolov7-face
  9. https://github.com/derronqi/yolov8-face
  10. https://github.com/FeiGeChuanShu/GFPGAN-ncnn
  11. https://github.com/ultralytics/ultralytics

Download Model files (GFPGAN-ncnn model files)

Models-v0.0.1

https://github.com/onuralpszr/GFPGAN-ncnn-vulkan/releases/download/v0.0.1-models/GFPGAN-ncnn-models.zip

gfpgan-ncnn-vulkan's People

Contributors

dependabot[bot] avatar feigechuanshu avatar frknkrc44 avatar onuralpszr avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gfpgan-ncnn-vulkan's Issues

Undefined reference to 'cv::Mat:: ' related errors

Hi,
I have tried building and running your repository. When I compile it on Ubuntu I get the following errors which I think are related to my OpenCV version or NCNN.
Can you specify the version you have used or recommend?
Currently, I'm using the latest OpenCV and NCNN versions.
1
2

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.