See https://zhuanlan.zhihu.com/p/31619824
Or https://arxiv.org/abs/1802.02595 for details
Install Python3 (>=3.5)
Put two fonts (NotoSansCJK.ttc, NotoSerifCJK.ttc) under the ./fonts
folder.
Type the following command in shell:
pip3 install --user -r requirements.txt
If you have a GPU that supports CUDA, replace tensorflow
with tensorflow-gpu
in requirements.txt
Run
make sample
under the root directory of the project.
Run
python3 train.py
While the model is being trained, open a new tab and type
tensorboard --logdir ./board
Code derived from:
- zi2zi by Yuchen Tian
Network architecture derived from:
- Chinese typography transfer by Jie Chang and Yujun Gu
Apache 2.0