Code Monkey home page Code Monkey logo

cocoapi's Introduction

COCO 2017 Stuff Segmentation Challenge API

The COCO Stuff API extends the COCO API with additional tools for stuff segmentation. On this page we present all files that are relevant to the COCO 2017 Stuff Segmentation Challenge. The API currently fully supports Matlab and Python. For use with other languages we also provide various scripts below to convert annotations from COCO ground-truth (GT) format to .png format, as well as from .png format back to COCO result format.

COCO API notes

In addition to this API, please download both the COCO images and annotations in order to run the demos and use the API. Both are available on the project website.

  • Please download, unzip, and place the images in: coco/images/
  • Please download and place the annotations in: coco/annotations/ For substantially more details on the API please see http://cocodataset.org.

After downloading the images and annotations, run the Matlab or Python demos for example usage.

To install:

  • For Matlab, add coco/MatlabApi to the Matlab path (OSX/Linux binaries provided)
  • For Python, run "make" under coco/PythonAPI

Stuff API files

The following is an overview of all the demo files (in API/cocostuff):

  • cocoStuffDemo: A preview script that shows how to use the COCO API. It lists the categories, super-categories and shows the annotations of an example image.
  • cocoStuffEvalDemo: Shows how to use the main evaluation script of the Stuff Segmentation Challenge.

Below are essential scripts used to convert between different file formats (in API/cocostuff):

  • cocoSegmentationToPngDemo: Converts COCO segmentation .json files (GT or results) to one .png file per image.
  • pngToCocoResultDemo: Converts a folder of .png images with segmentation results back to the COCO result format.

Internally these scripts make use of (in PythonAPI/pycocotools and MatlabAPI/cocostuff):

  • cocoStuffEval: Internal functions for evaluating stuff segmentations against a ground-truth.
  • cocoStuffHelper: Helper functions used to convert between different formats for the COCO Stuff Segmentation Challenge.

cocoapi's People

Contributors

pdollar avatar tylin avatar nightrome avatar mohomran avatar rodrigob avatar szagoruyko avatar

Watchers

James Cloos 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.