# ethology-test-data Test data for the ethology Python package. ## Adding or editing data ### Folder structure When adding test data to test a specific module, please include under a subdirectory with the following structure: ```bash test_data/test_/ ``` This will allow us to make efficient use of the `pooch` library and the `pytest` fixtures. ### Steps Remember to update the file registry at `files-registry.txt` after adding or editing the data! To do so, run the following from the root of the GIN repository: **1.** Ensure all the content is downloaded locally: ```bash gin download --content ``` **2.** After editing or adding any files, run the provided Python script to re-generate the `file-registry.txt` file: ```bash python get_sha256_hashes.py ``` **3.** Commit and upload the changes to the GIN repository ```bash gin commit -m "Update file and file-registry.txt" file-registry.txt gin upload file-registry.txt ``` For more details on how to work with GIN data repositories, please see the [GIN HowTo guide](https://howto.neuroinformatics.dev/open_science/GIN-repositories.html). ## 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 boxess 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 boxess 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 boxess dataset in VIA, COCO and VIA-CSV formats. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `via_project_30Jan2025_15h15m.json` | bboxes | VIA | 3 | 3 | One bounding box per frame. | | `via_project_30Jan2025_15h15m_coco.json` | bboxes | COCO | 3 | 3 | One bounding box per frame. | | `via_project_30Jan2025_15h15m_csv.json` | bboxes | VIA-CSV | 3 | 3 | One bounding box per frame. | #### `small_bboxes_dataset_duplicates` A small size bounding boxess dataset in VIA, COCO and VIA-CSV formats with duplicate annotations. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `via_project_30Jan2025_15h15m.json` | bboxes | VIA | 4 | 3 | Duplicate annotation in frame 0, one annotation per frame in the rest of frames. | | `via_project_30Jan2025_15h15m_coco.json` | bboxes | COCO | 4 | 3 | Duplicate annotation in frame 0, one annotation per frame in the rest of frames.| | `via_project_30Jan2025_15h15m_csv.json` | bboxes | VIA-CSV | 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 boxess dataset in VIA, COCO and VIA-CSV formats without categories. | File name | Type | Format | N annotations | N images | Comments | | --- | --- | --- | --- | --- | --- | | `via_project_30Jan2025_15h15m.json` | bboxes | VIA | 3 | 3 | No categories or supercategories are specified. This data is still supported | | `via_project_30Jan2025_15h15m_coco.json` | bboxes | COCO | 3 | 3 | No categories are specified, so no annotations are exported in COCO format. This data will throw an error. | | `via_project_30Jan2025_15h15m_csv.json` | bboxes | VIA-CSV | 3 | 3 | No categories are specified. |