• Stars
    star
    177
  • Rank 215,985 (Top 5 %)
  • Language
    C++
  • Created about 3 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PSGAN running with ncnn⚡妆容迁移/仿妆⚡Imitation Makeup/Makeup Transfer⚡

PSGAN-NCNN

What

  1. PSGAN是CVPR2020上的一个妆容迁移的工作,该工程的目的是将PSGAN移植至c++,并将所有模型使用ncnn进行推理
  2. 妆容迁移:有一张上了妆的人脸图像A,有一张没上妆的素颜人脸图像B,妆容迁移就是给B上A的妆容

Introduce

image image

  1. PSGAN提出的模型是2stage的,第一个stage计算两个特征值gamma和beta,第二个stage才计算迁移后的妆容,所以有两个模型
  2. 人脸的预处理,PSGAN的实现用了dlib的人脸检测和人脸68点关键点,还有一个pytorch的人脸属性分割模型
  3. 如代码所示,我除了dlib的方法外,我还收集了可以在ncnn上运行人脸检测和人脸关键点的模型对dlib进行了替换

Source Code

  1. opencv_dlib_ncnn_vs2019:opencv + dlib + ncnn的VS2019工程(最直接实现)
  2. opencv-mobile_ncnn_vs2019:opencv-mobile + ncnn的VS2019工程(最小依赖实现)
  3. opencv-mobile_ncnn_qt_vs2019:opencv-mobile + ncnn + qt界面的VS2019工程

Resource

  1. 带有qt gui的exe程序: 百度网盘(提取码:6666) image
  2. 知乎分析文章:https://zhuanlan.zhihu.com/p/426474467

Reference

  1. PSGAN: https://github.com/wtjiang98/PSGAN
  2. ncnn: https://github.com/Tencent/ncnn
  3. dlib: https://github.com/davisking/dlib
  4. opencv: https://github.com/opencv/opencv
  5. opencv-mobile: https://github.com/nihui/opencv-mobile
  6. LFFD-with-ncnn: https://github.com/SyGoing/LFFD-with-ncnn
  7. Peppa-Facial-Landmark-PyTorch: https://github.com/ainrichman/Peppa-Facial-Landmark-PyTorch

More Repositories

1

Stable-Diffusion-NCNN

Stable Diffusion in NCNN with c++, supported txt2img and img2img
C++
973
star
2

ClothingTransfer-NCNN

CT-Net, OpenPose, LIP_JPPNet, DensePose running with ncnn⚡服装迁移/虚拟试穿⚡ClothingTransfer/Virtual-Try-On⚡
C++
247
star
3

QRCode-NCNN

QRCode(from WeChat) implement in ncnn⚡二维码检测&解码⚡ncnn⚡
C++
204
star
4

CLIP-ImageSearch-NCNN

CLIP⚡NCNN⚡基于自然语言的图片搜索(Image Search)⚡以字搜图⚡x86⚡Android
C++
177
star
5

GPT2-ChineseChat-NCNN

GPT2⚡NCNN⚡中文对话⚡x86⚡Android
C++
78
star
6

diffusers-ncnn

C++
74
star
7

NeRF-NCNN

NeRF in NCNN with c++ & vulkan
C++
67
star
8

DragGan-NCNN

DragGan in NCNN with c++
C++
45
star
9

YOLOP-NCNN

YOLOP running in Android by ncnn
C++
45
star
10

monodepth-NCNN

monodepth running in Android by ncnn
C++
21
star
11

SID-NCNN

Learning to See in the Dark running in Android by ncnn with Raw Camera
C
21
star
12

Android_learning

C++
19
star
13

whisper-trtllm

Whisper in TensorRT-LLM
C++
14
star
14

PiDiNet-NCNN

PiDiNet running in Android by ncnn
C++
13
star
15

Meeting-Matting

视频会议换背景⚡背景调色
C++
12
star
16

model_zoo

Recording models
11
star
17

ncnn-tnn-mnn-android-demo

ncnn & tnn & mnn 三合一的安卓 Camera & Gallery 工程
C++
9
star
18

OpenCL_learning

Jupyter Notebook
7
star
19

ncnn2pytorch

C++
6
star
20

espnet-trt

Python
5
star
21

cheaperStoreSD

less store for stable diffusion model
C++
4
star
22

Ncnn_Win

C++
3
star
23

fast_uint8_softmax

C++
2
star
24

Paper_Mark

1
star
25

Hey-PowerVR-FP16

分析一下遇到的PowerVR的FP16的计算精度问题
C++
1
star
26

TopK

Cuda
1
star