-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add evaluation module, from_mot conversion script (#304)
* Add evaluation module, from_mot conversion script * add label config + description, from_mot unit test, from_mot documentation * fix TypedDict in py3.7 * new metadata config format, refactor usages of config, add eval documentation and cli * fix from mot * add testcase files * eval testcases * add config to from_coco * ignore mypy flask import error * update from_mot * polish PR details * rm DictAny * unify cli arguments; revert from_mot.py * dataset pydantic model * fix small issues * fix duplicate * Add image size in config * ImageSize to Frame, refactor metadata usages * fix label.io.save Co-authored-by: XiaLiPKU <ethanlee@pku.edu.cn> Co-authored-by: Fisher Yu <i@yf.io>
- Loading branch information
1 parent
4948d86
commit b4cdfd5
Showing
37 changed files
with
1,445 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,55 @@ | ||
Configuration Format | ||
---------------------- | ||
|
||
The category configuration is simply a list of categories names. An example in | ||
yaml format: | ||
|
||
.. code-block:: yaml | ||
- name: pedestrian | ||
- name: rider | ||
- name: other person | ||
- name: car | ||
- name: bus | ||
- name: truck | ||
- name: train | ||
- name: trailer | ||
- name: other vehicle | ||
- name: motorcycle | ||
- name: bicycle | ||
- name: traffic sign | ||
- name: traffic light | ||
The configuration should contain a list of category names. Additionally, the | ||
available attributes for the dataset as well as the image resolution (if all | ||
images have the same resolution, otherwise use the attribute "size" of each | ||
frame) may be optionally specified. For categories where objects should be | ||
detected, but are not tracked, set the attribute 'tracking' to false. | ||
|
||
BDD100K example configuration in toml format: | ||
|
||
.. code-block:: toml | ||
resolution = [720, 1280] | ||
[[attributes]] | ||
name = "crowd" | ||
toolType = "switch" | ||
tagText = "c" | ||
[[categories]] | ||
name = "human" | ||
[[categories.subcategories]] | ||
name = "pedestrian" | ||
[[categories.subcategories]] | ||
name = "rider" | ||
[[categories]] | ||
name = "vehicle" | ||
[[categories.subcategories]] | ||
name = "car" | ||
[[categories.subcategories]] | ||
name = "truck" | ||
[[categories.subcategories]] | ||
name = "bus" | ||
[[categories.subcategories]] | ||
name = "train" | ||
[[categories]] | ||
name = "bike" | ||
[[categories.subcategories]] | ||
name = "motorcycle" | ||
[[categories.subcategories]] | ||
name = "bicycle" | ||
[[categories]] | ||
name = "traffic light" | ||
[[categories]] | ||
name = "traffic sign" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
Evaluation | ||
=================== | ||
|
||
We currently support evaluation of two tasks: Object detection and multi-object | ||
tracking. | ||
To evaluate your algorithms on each task, input your predictions and the | ||
corresponding ground truth annotations in Scalabel format. | ||
|
||
Detection | ||
----------------- | ||
The detection evaluation uses the AP metric and follows the protocol defined | ||
in the COCO dataset. You can start the evaluation by running: | ||
|
||
``python3 -m scalabel.eval.detect <args>`` | ||
|
||
Available arguments: | ||
|
||
.. code-block:: bash | ||
--gt, GT_PATH -g GT_PATH | ||
path to ground truth annotations. | ||
--result, RESULT_PATH -r RESULT_PATH | ||
path to results to be evaluated. | ||
--config CFG_PATH, -c CFG_PATH | ||
Config path. Contains metadata like available categories. | ||
--out-dir OUT_DIR, -o OUT_DIR | ||
Output path for detection evaluation results. | ||
--nproc NUM_PROCS, -p NUM_PROCS | ||
Number of processes for detection evaluation. | ||
Multi-object Tracking | ||
---------------------- | ||
The MOT evaluation uses the CLEAR MOT metrics. You can start the evaluation | ||
by running: | ||
|
||
``python3 -m scalabel.eval.mot <args>`` | ||
|
||
Available arguments: | ||
|
||
.. code-block:: bash | ||
--gt, GT_PATH -g GT_PATH | ||
path to ground truth annotations. | ||
--result, RESULT_PATH -r RESULT_PATH | ||
path to results to be evaluated. | ||
--config CFG_PATH, -c CFG_PATH | ||
Config path. Contains metadata like available categories. | ||
--out-dir OUT_DIR, -o OUT_DIR | ||
Output path for evaluation results. | ||
--iou-thr IOU_TRESH | ||
IoU threshold for mot evaluation. | ||
--ignore-iof-thr IGNORE_IOF_THRESH | ||
Ignore iof threshold for mot evaluation. | ||
--nproc NUM_PROCS, -p NUM_PROCS | ||
Number of processes for mot evaluation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Scalabel evaluation package.""" |
Oops, something went wrong.