LoginSignup
9
14

More than 3 years have passed since last update.

実写をアニメ風に変換してくれるWhite-box Cartoonizationやーる(Windows10、Python3.6)

Last updated at Posted at 2020-05-24

はじめに

実写をアニメ風に変換してくれるWhite-box-Cartoonizationをやってみました

システム環境

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

導入

White-box Cartoonizationをクローンします。

White-box Cartoonization用の環境を作成します。

$ conda create -n wbc python=3.6
$ conda activate wbc
$ cd White-box-Cartoonization-master
$ pip install tensorflow-gpu==1.12.0
$ pip install scikit-image==0.14.5
$ pip install opencv-python
$ pip install tqdm

テスト画像を/test_code/test_imagesに置きます。

/test_code/cartoonize.pyを実行します。

$ cd test_code
$ python cartoonize.py
100%|██████████████████████████████████████████████████████████████████████████████████| 11/11 [00:12<00:00,  1.12s/it]

結果は/test_code/cartoonized_imagesに保存されます。

before

image.png

after

image.png

お疲れ様でした。

9
14
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
9
14