beast
Behavioral analysis via self-supervised pretraining of transformers
beast is a package for pretraining vision transformers on unlabeled data to provide backbones
for downstream tasks like pose estimation, action segmentation, and neural encoding.
See the ICLR paper here.
Installation
Step 1: Install ffmpeg
First, check to see if you have ffmpeg installed by typing the following in the terminal:
ffmpeg -version
If not, install:
sudo apt install ffmpeg
Step 2: Create a conda environment
First, install anaconda.
Next, create and activate a conda environment:
conda create --yes --name beast python=3.10
conda activate beast
Step 3: Download and install
Move to your home directory (or wherever you would like to download the code) and install via Github clone or through PyPI.
For Github cloning:
git clone https://github.com/paninski-lab/beast
cd beast
pip install -e .
For installation through PyPI:
pip install beast-backbones
Usage
beast comes with a simple command line interface. To get more information, run
beast -h
Extract frames
Extract frames from a directory of videos to train beast with.
beast extract --input <video_dir> --output <output_dir> [options]
Type "beast extract -h" in the terminal for details on the options.
Train a model
You will need to specify a config path; see the configs directory for examples.
beast train --config <config_path> [options]
Type "beast train -h" in the terminal for details on the options.
Run inference
Inference on a single video or a directory of videos:
beast predict --model <model_dir> --input <video_path> [options]
Inference on (possibly nested) directories of images:
beast predict --model <model_dir> --input <video_path> [options]
Type "beast predict -h" in the terminal for details on the options.
Contributing
See CONTRIBUTING.md for guidelines on setting up a development environment, code style, and submitting pull requests.
Funding
We are grateful for support from the following:
- Gatsby Charitable Foundation GAT3708
- NIH R50NS145433
- NIH U19NS123716
- NSF 1707398
- The NSF AI Institute for Artificial and Natural Intelligence
- Simons Foundation
- Wellcome Trust 216324
- Zuckerman Institute (Columbia University) Team Science
Metadata
Release files for beast-backbones 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| beast_backbones-1.4.0.tar.gz | 45.8 kB | With provenance | Details for beast_backbones-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| beast_backbones-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for beast_backbones-1.4.0-py3-none-any.whl |
Total release size: 101.5 kB
Release files / beast_backbones-1.4.0.tar.gz
| Download URL | beast_backbones-1.4.0.tar.gz |
|---|---|
| Size | 45.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea83b1cf032c528fff15927f9dd49eee0b24752b3e249922bf2c623f8679683c
|
|
BLAKE2b-256 checksum How to use checksums |
7a850a30dda6346b14ceb7183b3c4659ae60ac1fc45b1ec5ad2f630f688f74c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logRelease files / beast_backbones-1.4.0-py3-none-any.whl
| Download URL | beast_backbones-1.4.0-py3-none-any.whl |
|---|---|
| Size | 55.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b594994dee2b400346b639b59e110d15e312a56add501a1f96aa81563d270276
|
|
BLAKE2b-256 checksum How to use checksums |
25982e3d5fdcdb697044c1ff03503fd7b14a42c07c9968f70a1dfa35b2830aef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logSecurity for beast-backbones 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for beast_backbones-1.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.