Global Tracking Transformers for biological multi-object tracking.
Project description
DREEM Relates Every Entity's Motion
Features
- ✅ Command-Line & API Access: Use DREEM via a simple CLI or integrate into your own Python scripts.
- ✅ Pretrained Models: Get started quickly with models trained specially for microscopy and animal domains.
- ✅ Configurable Workflows: Easily customize training and inference using YAML configuration files.
- ✅ Visualization: Visualize tracking results in your browser without any data leaving your machine, or use the SLEAP GUI for a more detailed view.
- ✅ Examples: Step-by-step notebooks and guides for common workflows.
Installation
DREEM works best with Python 3.12. We recommend using uv for package management.
In a new directory:
uv venv && source .venv/bin/activate
uv pip install dreem-track
or as a system-wide package that does not require a virtual environment:
uv tool install dreem-track
Now dreem commands will be available without activating a virtual environment.
For more installation options and details, see the Installation Guide.
Quickstart
1. Download Sample Data and Model
# Install huggingface-hub if needed
uv pip install huggingface_hub
# Download sample data
hf download talmolab/sample-flies --repo-type dataset --local-dir ./data
# Download pretrained model
hf download talmolab/animals-pretrained \
--repo-type model \
--local-dir ./models \
--include "animals-pretrained.ckpt"
2. Run Tracking
dreem track ./data/inference \
--checkpoint ./models/animals-pretrained.ckpt \
--output ./results \
--crop-size 70
3. Visualize Results
Results are saved as .slp files that can be opened directly in SLEAP for visualization.
For a more detailed walkthrough, check out the Quickstart Guide or try the Colab notebook.
Usage
Training a Model
Train your own model on custom data:
dreem train ./data/train \
--val-dir ./data/val \
--crop-size 70 \
--epochs 10
Running Inference
Run tracking on new data with a pretrained model:
dreem track ./data/inference \
--checkpoint ./models/my_model.ckpt \
--output ./results \
--crop-size 70
Evaluating Results
Evaluate tracking accuracy against ground truth:
dreem eval ./data/test \
--checkpoint ./models/my_model.ckpt \
--output ./results \
--crop-size 70
For detailed usage instructions, see the Usage Guide.
Documentation
- Installation Guide - Detailed installation instructions
- Quickstart Guide - Get started in minutes
- Usage Guide - Complete workflow documentation
- Configuration Reference - Customize training and inference
- API Reference - Python API documentation
- Examples - Step-by-step notebooks
Examples
We provide several example notebooks to help you get started:
- Quickstart Notebook - Fly tracking demo with pretrained model
- End-to-End Demo - Train, run inference, and evaluate
- Microscopy Demo - Track cells in microscopy data
All notebooks are available on Google Colab.
Contributing
We welcome contributions! Please see our Contributing Guide for details on:
- Code style and conventions
- Submitting pull requests
- Reporting issues
Citation
If you use DREEM in your research, please cite our paper:
@article{dreem2024,
title={DREEM: Global Tracking Transformers for Biological Multi-Object Tracking},
author={...},
journal={...},
year={2024}
}
License
This project is licensed under the BSD-3-Clause License - see the LICENSE file for details.
Questions? Open an issue on GitHub or visit our documentation.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dreem_track-0.5.1.tar.gz.
File metadata
- Download URL: dreem_track-0.5.1.tar.gz
- Upload date:
- Size: 19.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd8050d32a7ba0575adb0cb400d3b7aaa4616372c53ea9913e8f6c5a3f38b561
|
|
| MD5 |
c2d6a036c3442e3b06c67957476666d5
|
|
| BLAKE2b-256 |
2b97e2e1acfc0cb8637e30299fdb8dd9376f86cef0dd05f06fd39332ea7276a7
|
Provenance
The following attestation bundles were made for dreem_track-0.5.1.tar.gz:
Publisher:
build.yml on talmolab/dreem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dreem_track-0.5.1.tar.gz -
Subject digest:
dd8050d32a7ba0575adb0cb400d3b7aaa4616372c53ea9913e8f6c5a3f38b561 - Sigstore transparency entry: 1013097260
- Sigstore integration time:
-
Permalink:
talmolab/dreem@5190c3acc57f2d847213a9d2be28321982b7fbac -
Branch / Tag:
refs/tags/0.5.1 - Owner: https://github.com/talmolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@5190c3acc57f2d847213a9d2be28321982b7fbac -
Trigger Event:
release
-
Statement type:
File details
Details for the file dreem_track-0.5.1-py3-none-any.whl.
File metadata
- Download URL: dreem_track-0.5.1-py3-none-any.whl
- Upload date:
- Size: 119.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d723075a727c9ceb5fabf688d649285476c95066e833dc7d06ab1caa319a574a
|
|
| MD5 |
31bd72d6b9da88699a2f9264cfa28de7
|
|
| BLAKE2b-256 |
98f0cf5c4770db96c95d2edee4dcc4a043833314238674e87b102438947052e3
|
Provenance
The following attestation bundles were made for dreem_track-0.5.1-py3-none-any.whl:
Publisher:
build.yml on talmolab/dreem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dreem_track-0.5.1-py3-none-any.whl -
Subject digest:
d723075a727c9ceb5fabf688d649285476c95066e833dc7d06ab1caa319a574a - Sigstore transparency entry: 1013097281
- Sigstore integration time:
-
Permalink:
talmolab/dreem@5190c3acc57f2d847213a9d2be28321982b7fbac -
Branch / Tag:
refs/tags/0.5.1 - Owner: https://github.com/talmolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@5190c3acc57f2d847213a9d2be28321982b7fbac -
Trigger Event:
release
-
Statement type: