Please, follow the following steps for model training and evaluation.
python train_dvae.py --img_folder data/CelebAMask-HQ/CelebA-HQ-img --batch_size 64
python generate_dvae_embeddings.py --img_folder data/CelebAMask-HQ/CelebA-HQ-img --batch_size 128 --img_size 128
python train_transformer.py --learning_rate 0.0003 --batch_size 32 --array_folder data/dvae_codes/
python generate_images.py --vae_checkpoint_path checkpoints/vae_ckpt.pth --transformer_checkpoint_path checkpoints/transformer_ckpt.pt
The generated images are placed in results/transformer_training
folder.