Imported from https://github.com/Yang7879/3D-RecGAN-extended