## Available data The test data is organised under subdirectories that match the tested modules in the `ethology` package. ### Test data for `ethology.annotations` #### `medium_bboxes_dataset_VIA` A medium size bounding boxes dataset in VIA format. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `VIA_JSON_sample_1.json` | bboxes | VIA | 4440 | 50 | Category ID is a string ("crab"). | | `VIA_JSON_sample_2.json` | bboxes | VIA | 3977 | 50 | Category ID is a string ("crab").| #### `medium_bboxes_dataset_COCO` A medium size bounding boxes dataset in COCO format. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `COCO_JSON_sample_1.json` | bboxes | COCO | 4344 | 100 | Category ID is a number (1). | | `COCO_JSON_sample_2.json` | bboxes | COCO | 4618 | 100 | Category ID is a number (1).| #### `small_bboxes_dataset` A small size bounding boxes dataset in VIA, COCO and VIA-CSV formats. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `small_bboxes_VIA.json` | bboxes | VIA | 3 | 3 | One bounding box per frame. The category ID is "1" (string) for all annotations. | | `small_bboxes_COCO.json` | bboxes | COCO | 3 | 3 | One bounding box per frame. The category ID is 1 (integer) for all annotations. | #### `small_bboxes_dataset_duplicates` A small size bounding boxes dataset in VIA, COCO and VIA-CSV formats with duplicate annotations. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `small_bboxes_duplicates_VIA.json` | bboxes | VIA | 4 | 3 | Duplicate annotation in frame 0, one annotation per frame in the rest of frames. | | `small_bboxes_duplicates_COCO.json` | bboxes | COCO | 4 | 3 | Duplicate annotation in frame 0, one annotation per frame in the rest of frames.| #### `small_bboxes_dataset_no_categories` A small size bounding boxes dataset in VIA, COCO and VIA-CSV formats without categories. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `small_bboxes_no_cat_VIA.json` | bboxes | VIA | 3 | 3 | No categories or supercategories are specified. This data is still supported | | `small_bboxes_no_cat_COCO.json` | bboxes | COCO | 3 | 3 | No categories are specified, so no annotations are exported in COCO format. This data should throw an error. | | `small_bboxes_null_catID_COCO.json` | bboxes | COCO | 3 | 3 | The category ID in the VIA tool is not an integer, so when exporting the annotations to COCO format the category ID is set to `null`. This data should throw an error. | #### `small_bboxes_dataset_subset` A subset of the corresponding small bounding boxes datasets. If prefixed with `_plus` it contains some additional annotations. See description of the corresponding dataset for more details. The files with the same name except for the format identifier contain the exact same annotations. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `small_bboxes_VIA_subset.json` | bboxes | VIA | 2 | 3 | Same as `small_bboxes_VIA.json` but the last annotation in the last frame has been removed. | | `small_bboxes_VIA_subset_plus.json` | bboxes | VIA | 3 | 3 | Same as `small_bboxes_VIA_subset.json` but with one additional annotation, different from any of the annotations in `small_bboxes_VIA.json`.| | `small_bboxes_COCO_subset.json` | bboxes | VIA | 2 | 3 | Same as `small_bboxes_COCO.json` but the last annotation in the last frame has been removed. | | `small_bboxes_COCO_subset_plus.json` | bboxes | VIA | 3 | 3 | Same as `small_bboxes_COCO_subset.json` but with one additional annotation, different from any of the annotations in `small_bboxes_COCO.json`.| #### `small_bboxes_image_id_checks` Small size bounding boxes dataset to check if the image ID based on the alphabetical order of the filenames is assigned correctly by `ethology`. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `small_bboxes_image_id_VIA.json` | bboxes | VIA | 3 | 3 | In the `_via_image_id_list` the keys for the three image filenames is not sorted alphabetically. So the image ID assigned based on the order of `_via_image_id_list` is different to the image ID assigned based on the alphabetically sorted list of filenames. | | `small_bboxes_image_id_COCO.json` | bboxes | COCO | 3 | 3 | The image IDs in the COCO file are different from the image IDs that would be assigned if based on the alphabetically sorted list of filenames. | #### `small_bboxes_dataset_errors` Small size bounding boxes datasets with errors to catch. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `small_bboxes_non_unique_img_id_COCO.json` | bboxes | COCO | 4 | 4 | Two images have the same image ID and their filename differs only by the extension. This happens if two images have the same number-based filename, because the imageID is extracted using [`parseInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt) when exporting as COCO in the VIA tool.|