5
2

More than 3 years have passed since last update.

ALAE : Adversarial Latent Autoencoders で顔画像生成(Windows10、Python3.7)

Last updated at Posted at 2020-04-27

はじめに

一枚の自撮り画像を用いて、性別や年齢、笑顔、髪の毛、口や鼻、メガネなどのパラメータを変化させて、顔画像を生成するALAEをやってみました。

システム環境

  • Windows10(RTX2080 Max-Q、i7-8750H、RAM16GB)
  • Anaconda 2020.02
  • Python 3.7

導入

ALAEをクローンします。

ALAE用の環境を作成します。

$ cd ALAE-master
$ conda create -n ALAE python=3.7
$ conda activate ALAE

ライブラリをインストールします。

$ pip install torch==1.5.0 torchvision==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html
$ pip install -r requirements.txt

下記を実行し、学習済みモデルをダウンロードします。

$ python training_artifacts/download_all.py

デモを実行します。

$ python interactive_demo.py

ALAE-master\dataset_samples\faces\realign1024x1024に自撮り画像を置いて実行してみました。

入力 出力
00148.png image.png

かわいいw

お疲れ様でした。

5
2
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
5
2