Imported from https://github.com/NVlabs/geomapnet