Library for easier access and research of wildlife re-identification datasets
Project description
Wildlife Re-Identification (Re-ID) Datasets
The aim of the project is to provide comprehensive overview of datasets for wildlife individual re-identification and an easy-to-use package for developers of machine learning methods. The core functionality includes:
- overview of 31 publicly available wildlife re-identification datasets.
- utilities to mass download and convert them into a unified format.
- default splits for several machine learning tasks including the ability create additional splits.
- evaluation metrics for closed-set and open-set classification.
We provide documentation and examples in notebooks. The package provides a natural synergy with Wildlife tools, which provides out MegaDescriptor model and tools for training neural networks.
Summary of datasets
An overview of the provided datasets is available in the documentation, while the more numerical summary is located in a Jupyter notebook. Due to its size, it may be necessary to view it via nbviewer.
We include basic characteristics such as publication years, number of images, number of individuals, dataset time span (difference between the last and first image taken) and additional information such as source, number of poses, inclusion of timestamps, whether the animals were captured in the wild and whether the dataset contain multiple species.
Installation
The installation of the package is simple by
pip install wildlife-datasets
Basic functionality
We show an example of downloading, extracting and processing the MacaqueFaces dataset.
from wildlife_datasets import analysis, datasets
datasets.MacaqueFaces.get_data('data/MacaqueFaces')
dataset = datasets.MacaqueFaces('data/MacaqueFaces')
The class dataset
contains the summary of the dataset. The content depends on the dataset. Each dataset contains the identity and paths to images. This particular dataset also contains information about the date taken and contrast. Other datasets store information about bounding boxes, segmentation masks, position from which the image was taken, keypoints or various other information such as age or gender.
dataset.df
The dataset also contains basic metadata including information about the number of individuals, time span, licences or published year.
dataset.metadata
This particular dataset already contains cropped images of faces. Other datasets may contain uncropped images with bounding boxes or even segmentation masks.
analysis.plot_grid(dataset.df, 'data/MacaqueFaces')
Additional functionality
For additional functionality including mass loading, datasets splitting or evaluation metrics we refer to the documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wildlife_datasets-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 379cc5709e315b627d579e678a0dfad67cfdce9273cc724c4bd4f3b17c2cd5e3 |
|
MD5 | 63969c55361d987c144d4f2bfc2d5fe6 |
|
BLAKE2b-256 | ef79259c60b8656b078a619135ec164004572ca5a9f1161e1745304600b93425 |