Code Monkey home page Code Monkey logo

cocojson's Introduction

cocojson

Utility scripts for COCO json annotation format. The COCO Format is defined here.

Install

cocojson package can be installed through pip3 install -e . (editable install) or pip3 install .

Usage

Please click into each for more details (if applicable).

COCO Eval

Please use https://github.com/levan92/cocoapi.

Utility Tools

Merges multiple datasets

python3 -m cocojson.run.merge -h

Merges multiple datasets

python3 -m cocojson.run.merge_from_file -h

Samples k images from a dataset

python3 -m cocojson.run.sample -h

Split up a COCO JSON file by images into N sets defined by ratio of total images

python3 -m cocojson.run.split -h

Visualise annotations onto images. Best used for sanity check.

python3 -m cocojson.run.viz -h

Mapping categories to a new dataset. Usually used for converting annotation labels to actual class label for training.

python3 -m cocojson.run.map_cat -h

Filter categories from COCO JSON.

python3 -m cocojson.run.filter_cat -h

Remove images annotated with certain "ignore" category labels. This is usually used for removing rubbish images that are pointed out by annotators to ignore frame.

python3 -m cocojson.run.ignore_prune -h

Insert any extra attributes/image meta information associated with the images into the coco json file.

python3 -m cocojson.run.insert_img_meta -h

Split up a COCO JSON file by images' meta-information/attributes

python3 -m cocojson.run.split_by_meta -h

Match images between a reference COCO JSON A and COCO JSON B (to be trimmed). Any images in JSON B that is not found in JSON A will be removed (along with associated annotations)

python3 -m cocojson.run.match_imgs -h

Get annotations/predictions only from a COCO JSON. Usually used to generate a list of predictions for COCO evaluation.

python3 -m cocojson.run.pred_only -h

Converters

Convert CVAT Video XML to COCO JSON whilst preserving track information.

python3 -m cocojson.run.cvatvid2coco -h

CVAT Image XML to COCO JSON

TODO

Converts CrowdHuman's odgt annotation format to COCO JSON format.

python3 -m cocojson.run.crowdhuman2coco -h

Converts Custom Object Detection Logging format to COCO JSON format.

python3 -m cocojson.run.log2coco -h

COCO to Darknet

TODO

cocojson's People

Contributors

levan92 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.