Code Monkey home page Code Monkey logo

semantic-mapnet's Introduction

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

Pre-trained models

Object-Goal Navigation

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

semantic-mapnet's People

Contributors

vincentcartillier avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.