Skip to main content

Barnes Maze

Direct Interaction

Marble burrying

NORT

NORT (2)

Open Field

Social Interaction

T-maze

Three Chamber

Multi-Task Mouse Behaviour Dataset (mtmb)

Tooling for the Multi-Task Mouse Behaviour Dataset: bounding boxes, instance masks, 27-point poses and persistent track ids for laboratory mice, on the same frames, across nine standard behavioural assays. 14,300 frames, 27,716 annotated instances.

This repo is the mtmb package -- splitting, exporting and validating the dataset. For the full dataset card (task-by-task breakdown, annotation schema, license, citation), see docs/HF_README.md.

Install

pip install mtmb

For development, clone this repo and run uv sync.

Quickstart

mtmb tasks                                        # list tasks, what's already built
mtmb pooled                                        # image-level random split, all tasks
mtmb by-task --train barnes_maze --train marble \
             --valid nort --test t_maze            # whole tasks held out, no leakage
mtmb loo --folds 3                                  # leave-one-task-out, N folds

Every command builds an RF-DETR-style export under build/<name>/{train,valid,test}, with a manifest.json recording exactly what produced it. Run mtmb <command> --help for the full option list.

Python API

from mtmb import MouseDataset

dataset = MouseDataset()  # ./dataset under the working directory; pass a path to move it
dataset.download()        # fetches the tasks from the Hugging Face Hub
manifest = dataset.split_by_task(train=["barnes_maze"], valid=["nort"], test=["t_maze"])
dataset.build(manifest)

License

The mtmb code is MIT -- see LICENSE. The dataset itself is CC BY-NC 4.0, a separate license from the code -- see LICENSE-DATASET and the dataset card for why.

Metadata

Release files for mtmb 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mtmb 0.1.1
File Size Uploaded
mtmb-0.1.1.tar.gz 21.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mtmb 0.1.1
File Interpreter ABI Platform
mtmb-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 48.5 kB

Release files / mtmb-0.1.1.tar.gz

Download URL mtmb-0.1.1.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
229aa636b09faa6de5b7546f7a7f276d57025eba67708e90f61f017aa325cf91
BLAKE2b-256 checksum
How to use checksums
5abd89ea4bbc8e3513cd05e4c564787311e13ba16115f2f2af3ece81bf41577f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mtmb-0.1.1-py3-none-any.whl

Download URL mtmb-0.1.1-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6126edcb71831b739be544f37b90757776a0b2d375961d778aa50bfc3713c1b9
BLAKE2b-256 checksum
How to use checksums
cb3e61969ca76da8fbd73ce161c866da48d1afd45b0dfa326ffbdb7bb68a0481
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page