Skip to content

Code to generate instance masks for SIGNet, adapted for the CARLA simulator

License

Notifications You must be signed in to change notification settings

raunaks13/Detectron-SIGNet

Repository files navigation

Detectron for SIGNet

In SIGNet, instance masks need to be generated in '.raw' format in order to be parsed for use in training depth, pose, and rigid flow. For more information about formatting, check the README.md file in the carla-SIGNet repository.

We compute the instance masks using a modified version of Facebook AI Research's Detectron.

This repository contains the modified code in order to generate these instance masks. Note that the masks need to be generated for sequences of 3 images (that are concatenated into one image) during training, and for singular images during testing.

Specifically, look at the infer_simple-eigen script in the tools folder, and the vis-raw file in the detectron/utils folder.

Running

It is easiest to build Detectron from it's docker image in case you do not have Caffe2 installed and running already with the right CUDA version (please see INSTALL.md.

Create a folder called models and place the Mask-RCNN model inside it: https://drive.google.com/open?id=1fvfVgZLND9MT_6jaSXcKvNVirR4reexk

Example running command:

python tools/infer_simple-eigen.py \
    --cfg configs/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_2x.yaml \
   --output-dir /dir/to/store/results/ \
   --image-ext png \
   --output-ext png \
   --wts models/mask_rcnn_R-101-FPN_2x.pkl \
   --kitti_eigen_file /path/to/list/of/images.txt \
   demo/kitti

Review the infer_simple-* files for further clarifications.

Below, you can find the original README.md content of the original Detectron repository. Please review it in case of troubleshooting issues with the platform.

Detectron

Detectron is Facebook AI Research's software system that implements state-of-the-art object detection algorithms, including Mask R-CNN. It is written in Python and powered by the Caffe2 deep learning framework.

At FAIR, Detectron has enabled numerous research projects, including: Feature Pyramid Networks for Object Detection, Mask R-CNN, Detecting and Recognizing Human-Object Interactions, Focal Loss for Dense Object Detection, Non-local Neural Networks, Learning to Segment Every Thing, Data Distillation: Towards Omni-Supervised Learning, DensePose: Dense Human Pose Estimation In The Wild, and Group Normalization.

Example Mask R-CNN output.

Introduction

The goal of Detectron is to provide a high-quality, high-performance codebase for object detection research. It is designed to be flexible in order to support rapid implementation and evaluation of novel research. Detectron includes implementations of the following object detection algorithms:

using the following backbone network architectures:

Additional backbone architectures may be easily implemented. For more details about these models, please see References below.

Update

License

Detectron is released under the Apache 2.0 license. See the NOTICE file for additional details.

Citing Detectron

If you use Detectron in your research or wish to refer to the baseline results published in the Model Zoo, please use the following BibTeX entry.

@misc{Detectron2018,
  author =       {Ross Girshick and Ilija Radosavovic and Georgia Gkioxari and
                  Piotr Doll\'{a}r and Kaiming He},
  title =        {Detectron},
  howpublished = {\url{https://github.com/facebookresearch/detectron}},
  year =         {2018}
}

Model Zoo and Baselines

We provide a large set of baseline results and trained models available for download in the Detectron Model Zoo.

Installation

Please find installation instructions for Caffe2 and Detectron in INSTALL.md.

Quick Start: Using Detectron

After installation, please see GETTING_STARTED.md for brief tutorials covering inference and training with Detectron.

Getting Help

To start, please check the troubleshooting section of our installation instructions as well as our FAQ. If you couldn't find help there, try searching our GitHub issues. We intend the issues page to be a forum in which the community collectively troubleshoots problems.

If bugs are found, we appreciate pull requests (including adding Q&A's to FAQ.md and improving our installation instructions and troubleshooting documents). Please see CONTRIBUTING.md for more information about contributing to Detectron.

References

About

Code to generate instance masks for SIGNet, adapted for the CARLA simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published