Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyCOCOSIoU Extension

This is a fork from cocoapi repository. More specifically, it is a fork of the Python API provided by the original authors.

It allows different box criteria for object detection model evaluation. Here is the list of the available criteria:

  • Intersection over Union.
  • Scaled Intersection over Union paper.
  • Normalized Wasserstein Distance paper.
  • Alpha-Intersection over Union paper. (TO COME)

Employ different criterion

Explain how to use the new API

Add possibility to change params of criteria

Installation notes

Simply run the following command, pip will install dependancies and the package. Only numpy must be installed beforehand.

pip install pycocosiou

It is also possible to install directly from the sources in this repository:

pip install git+https://github.com/pierlj/extended_pycocotools.git

Usage

Simply replace pycocotools imports in your script with pycocosiou. For instance from pycocotools.cocoeval import COCOeval becomes from pycocosiou.cocoeval import COCOeval.

Then, you can change the box similarity criterion employed to determine what boxes are correct or not by passing a criterion argument when creating the COCOeval object:

cocoeval_iou = COCOeval(coco_gt, coco_dt, iou_type) # default setting uses IoU
cocoeval_siou = COCOeval(coco_gt, coco_dt, iou_type, criterion='siou') # use SIoU instead
cocoeval_nwd = COCOeval(coco_gt, coco_dt, iou_type, criterion='nwd') # use NWD instead

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages