20
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

機械学習で低解像度の顔を補完

たとえば、以下の写真で、緑の四角の二人の顔に注目してみます。
pexels-icsa-1709003 (1).jpg

拡大すると、この二人の顔は不鮮明です。

これをVQFRで補完します。

肌の質感など、細かいところまで補完されています。

使い方

推論Colab

セットアップ

git clone https://github.com/TencentARC/VQFR.git
cd VQFR

pip install -r requirements.txt
pip install basicsr
pip install facexlib
VQFR_EXT=True python setup.py develop
pip install realesrgan  # used for enhancing the background (non-face) regions
wget https://github.com/TencentARC/VQFR/releases/download/v1.0.0/VQFR_v1-33a1fac5.pth -P experiments/pretrained_models

実行

python demo.py -i inputs_dir_path -o results -v 1.0 -s 1 --aligned

🐣


フリーランスエンジニアです。
お仕事のご相談こちらまで
rockyshikoku@gmail.com

Core MLやARKitを使ったアプリを作っています。
機械学習/AR関連の情報を発信しています。

Twitter
Medium
GitHub

20
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?