Giter VIP home page Giter VIP logo

amazon-sagemaker-pytorch-detectron2's Introduction

Object Detection with Detectron2 on Amazon SageMaker

Overview

In this repository, we use Amazon SageMaker to build, train and deploy Faster-RCNN and RetinaNet models using Detectron2. Detectron2 is an open-source project released by Facebook AI Research and build on top of PyTorch deep learning framework. Detectron2 makes easy to build, train and deploy state of the art object detection algorithms. Moreover, Detecron2โ€™s design makes easy to implement cutting-edge research projects without having to fork the entire codebase.Detectron2 also provides a Model Zoo which is a collection of pre-trained detection models we can use to accelerate our endeavour.

This repository shows how to do the following:

  • Build Detectron2 Docker images and push them to Amazon ECR to run training and inference jobs on Amazon SageMaker.
  • Register a dataset in Detectron2 catalog from annotations in augmented manifest files. Augmented manifest file is the output format of Amazon SageMaker Ground Truth annotation jobs.
  • Run a SageMaker Training job to finetune pre-trained model weights on a custom dataset.
  • Configure SageMaker Hyperparameter Optimization jobs to finetune hyper-parameters.
  • Run a SageMaker Batch Transform job to predict bouding boxes in a large chunk of images.

Get Started

Start by cloning this repository into your Amazon SageMaker notebook instance.

Open the notebook. Follow the instruction in the notebook and use conda_pytorch_p36 as kernel to execute code cells.

Instructions

You will use a Detectron2 object detection model to recognize objects in densely packed scenes. You will use the SKU-110k dataset for this task. Be aware that the authors of the dataset provided it solely for academic and non-commercial purposes. Please refer to the following paper for further details on the dataset:

@inproceedings{goldman2019dense,
 author    = {Eran Goldman and Roei Herzig and Aviv Eisenschtat and Jacob Goldberger and Tal Hassner},
 title     = {Precise Detection in Densely Packed Scenes},
 booktitle = {Proc. Conf. Comput. Vision Pattern Recognition (CVPR)},
 year      = {2019}
}

If you want details on the code used for training and prediction, please refer to code documentation in the respective source directories.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

amazon-sagemaker-pytorch-detectron2's People

Contributors

amazon-auto avatar paoloirrera avatar

Watchers

 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.