https://casualganpapers.com/vqvae-discrete-vision-transformer/VQGAN.html
Check out this paper summary