Skip to content

vincentcartillier/Semantic-MapNet

Repository files navigation

Semantic-MapNet

Code for the paper:

Semantic MapNet: Building Allocentric Semantic Maps and Representations from Egocentric Views Vincent Cartillier, Zhile Ren, Neha Jain, Stefan Lee, Irfan Essa, Dhruv Batra

Website: smnet.com

teaser figure

Install

The code is tested with Ubuntu 16.04, Python 3.6, Pytorch v1.4+.

  • Install the requirements using pip:

    pip install -r requirements.txt

  • To render egocentric frames in the Matterport3D dataset we use the Habitat simulator. Install Habitat-sim and Habitat-lab: Tested with the following versions Habitat-sim == 0.1.7 and Habitat-lab == 0.1.6.

Demo

run the following script for demo:

python demo.py

Data

Workflow

  • To recompute the GT topdown semantic maps from the object point clouds (data/object_point_clouds/) you can run the following:

     python compute_GT_topdown_semantic_maps/build_semmap_from_obj_point_cloud.py
    
  • Build training data: (1) build egocentric features + indices, (2) build topdown crops (250x250) (3) preprocess projection indices

     python precompute_training_inputs/build_data.py
     python precompute_training_inputs/build_crops.py
     python precompute_training_inputs/build_projindices.py
    
  • To train SMNet you can run train.py

  • Precompute testing features and projections indices for the full tours in the test set:

     python precompute_test_inputs/build_test_data.py
     python precompute_test_inputs/build_test_data_features.py
    
  • To evaluate SMNet you can run test.py and:

     python eval/eval.py
     python eval/eval_bfscore.py
    

Pre-trained models

Object-Goal Navigation

Replica

  • You can find the manually generated path related to the replica experiment at data_replica/paths.json

Citation

If you find our work useful in your research, please consider citing:

@article{cartillier2020semantic,
  title={Semantic MapNet: Building Allocentric SemanticMaps and Representations from Egocentric Views},
  author={Cartillier, Vincent and Ren, Zhile and Jain, Neha and Lee, Stefan and Essa, Irfan and Batra, Dhruv},
  journal={arXiv preprint arXiv:2010.01191},
  year={2020}
}

License

BSD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages