Leveraging Deep Generative Models for Estimation and Recognition