PyTorch reimplementation of "LayoutGAN: Generating Graphic Layouts with Wireframe Discriminators" publishsed in ICLR 2019: https://openreview.net/forum?id=HJxB5sRcFQ.
- PyTorch : 1.8.1
- TorchVision : 0.9.1
- PyTorch-Lightning : 1.3.4
- Download
pre_data_cls.npy
from Link. This is from Official Tensorflow Implementation Repository - Run
python3 train.py
. Use--gpus 1
option for GPU.
- Download
labels.tar.gz
from PubLayNet Official and decompress it as below.
PubLayNet
├ train.json
├ val.json
└ preprocess.py
- Run
python3 preprocess.py
in/PubLayNet
. Then you will havetrain.npy
andval.npy
- Run
python3 train.py --train_mode bbox
. Use--gpus 1
option for GPU.