A unified framework called Generalized Forward-Inverse (GFI) is proposed for subsurface imaging.The framework aims to solve forward and inverse problems using deep learning techniques.GFI encompasses previous works and introduces two new model architectures, Latent U-Net and Invertible X-Net.The proposed models achieve state-of-the-art performance on synthetic datasets and show promise on real-world data.