AVA Action#
Format specification#
The AVA action format specification is available here.
The dataset has annotations for recognizing an action per instance from video frames
like visual tracking task. Specifically, the AVA action dataset contains frame indices,
bounding box coordinates, actions, and tracking ids in the annotation file. The action
categories are described in ava_action_list_v2.2.pbtxt
. For the ease use for object
detection, the AVA action dataset provides the bounding box proposals from Faster R-CNN
.
Supported task / format:
Object detection -
ava
Supported annotation types:
Bbox
(detection)
Convert AVA action dataset#
The AVA action dataset is available for free download here.
An AVA action dataset can be converted in the following way:
datum convert --input-format ava --input-path <path/to/dataset> \
--output-format <desired_format> --output-dir <output/dir>
The AVA action dataset directory should have the following structure:
└─ Dataset
├── frames/
│ ├── video0/ # directory with list of frames extracted from video0
│ │ ├── img1.jpg
│ | ├── img2.jpg
│ | └── ...
│ ├── video1/ # directory with list of frames extracted from video1
│ │ ├── img1.jpg
│ | ├── img2.jpg
│ | └── ...
└── annotations/
├── ava_action_list_v2.2.pbtxt # list of action categories
├── ava_train_v2.2.csv # annotations for training data
├── ava_val_v2.2.csv # annotations for validation data
├── ava_dense_proposals_train.FAIR.recall_93.9.pkl # region proposals for training data
├── ava_dense_proposals_val.FAIR.recall_93.9.pkl # region proposals for validation data
└── ...
Export to other formats#
Datumaro can convert a AVA action dataset into any other format Datumaro supports.
Such conversion will only be successful if the output
format can represent the type of dataset you want to convert,
e.g., AVA action annotations can be converted to COCO detection
.
There are several ways to convert a AVA action dataset to other dataset formats:
datum convert --input-format ava --input-path <path/to/ava> \
--output-format coco --output-dir <output/dir>
Or, using Python API:
import datumaro as dm
dataset = dm.Dataset.import_from('<path/to/ava>', 'ava')
dataset.export('save_dir', 'coco', save_media=True)
Export to AVA action format#
There are several ways to convert an existing dataset to AVA action format:
# converting to AVA action format from other format
datum convert --input-format imagenet --input-path <path/to/dataset> \
--output-format ava --output-dir <output/dir> \
-- \
--save-media
Extra options for exporting to AVA action format:
--save-media
- allow to export dataset with saving media files (by defaultFalse
).
Examples#
Examples of using this format from the code can be found in the format tests.