https://medium.com/@monocosmo77/recent-updates-on-variational-autoencoder-part11-deep-learning-fall23-cad733fdb926