Deep learning-based Identity Preserving Labeled-Object Multi-Animal Tracking.
Project description
Deep learning-based Identity Preserving Labeled-Object Multi-Animal Tracking.
NOTE: DIPLOMAT is currently early beta software, there may be minor bugs and usability issues.
If you are a user (not a developer contributing code), you may want to visit:
- the software website: https://wheelerlab.org/DIPLOMAT
- in-depth documentation: https://diplomat.readthedocs.io
About
DIPLOMAT provides a multi-animal tracking/pose-estimation interface that (1) reduces identity swaps and body part losses, and (2) simplifies correction of automated tracking errors. Provided with a video and a pose estimation model (trained using SLEAP or DeepLabCut packages), DIPLOMAT computes a multi-animal maximum-probability trace to Track multiple animals (and their body parts). DIPLOMAT then provides an intuitive and memory/time efficient Interact interface to edit and re-track as needed. DIPLOMAT differs from other multi-animal tracking packages by working directly off of confidence maps instead of running peak detection, allowing for more accurate tracking results.
Correcting and re-tracing on the Interact Interface
| Example of tracking 2 Degus in a Box | Example of tracking 3 Rats |
|---|---|
Installation
For detailed installation instructions, please refer to the documentation.
Usage
Below, we provide a few simple instructions to remind users how to run DIPLOMAT commands. New users should read through the documentation to understand project setup, etc.
Running DIPLOMAT
To run DIPLOMAT on a video once it is installed, simply use DIPLOMAT's track and track_and_interact commands to track a video:
# Run DIPLOMAT with no UI, for 4 animals ...
diplomat track -c path/to/config -v path/to/video -no 4
# Run DIPLOMAT with UI, for 3 animals ...
diplomat track_and_interact -c path/to/config -v path/to/video -no 3
Multiple videos can be tracked by passing them as a list:
diplomat track -c path/to/config -v [path/to/video1, path/to/video2, "path/to/video3"] -no <num_animals>
Once tracking is done, DIPLOMAT can create labeled videos via it's annotate subcommand:
diplomat annotate -v path/to/video -c path/to/csv
If you need to reopen the UI to make further major modifications, you can do so using the interact subcommand:
diplomat interact -s path/to/ui_state.dipui
This displays the full UI again for making further edits. Results are saved back to the same files.
If you need to make minor modifications after tracking a video, you can do so using the tweak subcommand:
diplomat tweak -v path/to/video -c path/to/csv
This will display a stripped down version of the interactive editing UI, allowing for minor tweaks to be made to the tracks, and then saved back to the same file.
For a list of additional ways DIPLOMAT can be used, see the documentation.
Additional Help
All DIPLOMAT commands are documented via help strings. To get more information about a diplomat subcommand or command, simply run it with the -h or --help flag.
# Help for all of diplomat (lists sub commands of diplomat):
diplomat --help
# Help for the track subcommand:
diplomat track --help
# Help for the predictors subcommand space:
diplomat predictors --help
Some commands support passing frontend-specific arguments. To get frontend specific help, you can use the --help_extra flag.
diplomat track -c /path/to/config --help_extra
diplomat track_and_interact -c /path/to/config --help_extra
diplomat track_with -c /path/to/config -p Predictor --help_extra
Documentation
DIPLOMAT has documentation on ReadTheDocs at https://diplomat.readthedocs.io/en/latest.
Development
DIPLOMAT is written entirely in python. To set up an environment for developing DIPLOMAT, you can simply pull down this repository and install its requirements using pip. For a further description of how to set up DIPLOMAT for development, see the Development Usage section in the documentation.
Contributing
We welcome external contributions, although it is a good idea to contact the maintainers before embarking on any significant development work to make sure the proposed changes are a good fit.
Contributors agree to license their code under the license in use by this
project (see LICENSE).
To contribute:
- Fork the repo
- Make changes on a branch
- Create a pull request
License
See LICENSE for details.
Authors
If you have any questions, feel free to reach out to George Glidden, at help@diplomattrack.org
See AUTHORS for the full list of authors.
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
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 diplomat_track-0.3.26.tar.gz.
File metadata
- Download URL: diplomat_track-0.3.26.tar.gz
- Upload date:
- Size: 16.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 |
d2c9f086180dd6963b36952d12e30bab64adfb0af291a6a1531ac8cff437d3b8
|
|
| MD5 |
13fd95a3786ebde8a934035776c83746
|
|
| BLAKE2b-256 |
6ce1ba2a93c71016e293af082985b40bf21a764b8b3818bd1077ed0031f94f29
|
Provenance
The following attestation bundles were made for diplomat_track-0.3.26.tar.gz:
Publisher:
publish-to-pypi.yml on TravisWheelerLab/DIPLOMAT
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diplomat_track-0.3.26.tar.gz -
Subject digest:
d2c9f086180dd6963b36952d12e30bab64adfb0af291a6a1531ac8cff437d3b8 - Sigstore transparency entry: 986838471
- Sigstore integration time:
-
Permalink:
TravisWheelerLab/DIPLOMAT@01a94c2f8cf92957d521efd2e53e38e025b2d0f3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TravisWheelerLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@01a94c2f8cf92957d521efd2e53e38e025b2d0f3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file diplomat_track-0.3.26-py3-none-any.whl.
File metadata
- Download URL: diplomat_track-0.3.26-py3-none-any.whl
- Upload date:
- Size: 328.1 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 |
3e888382978efa75e716cd28a7ab8153f45478186d83a07816c8e258a1570e0f
|
|
| MD5 |
a267b1763b8f39a7887e58155db73829
|
|
| BLAKE2b-256 |
f1d668d1ce97254349b00fc3c299e6d6c2a6dabb24c9d9ba919e668d3fe4f29b
|
Provenance
The following attestation bundles were made for diplomat_track-0.3.26-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on TravisWheelerLab/DIPLOMAT
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diplomat_track-0.3.26-py3-none-any.whl -
Subject digest:
3e888382978efa75e716cd28a7ab8153f45478186d83a07816c8e258a1570e0f - Sigstore transparency entry: 986838516
- Sigstore integration time:
-
Permalink:
TravisWheelerLab/DIPLOMAT@01a94c2f8cf92957d521efd2e53e38e025b2d0f3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TravisWheelerLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@01a94c2f8cf92957d521efd2e53e38e025b2d0f3 -
Trigger Event:
push
-
Statement type: