Skip to content

deeperfly

deeperfly logo

Markerless 3D pose estimation of Drosophila from multi-camera rigs: deeperfly turns synchronized videos of a fly into the 3D trajectories of 38 keypoints and the joint angles of a NeuroMechFly body model, with a browser GUI to label frames and train its detectors on them.

Installation

git clone https://github.com/NeLy-EPFL/deeperfly
cd deeperfly
uv tool install --editable --torch-backend auto ".[detect,ik,ball]"

Leave out the extras you do not need: detect runs the 2D detectors, ik fits the body model, and ball tracks a treadmill ball. Installation has the details, and deeperfly doctor reports what an installation can do.

Quickstart

deeperfly run examples/octacam -c examples/octacam.toml
deeperfly gui examples/octacam

The run takes the example clip from videos to 3D keypoints, joint angles and an overlay video, in about a minute and a half on a GPU. The GUI opens the result, to check it and to correct or add labels. The quickstart goes through each step.

Where to go next

New here? Read these in order:

  1. Quickstart: the example run, in four steps.
  2. Tutorial: the same run explained, from the project and the run config to reading the results.
  3. Your own recordings: what it takes to run deeperfly on your videos.

For a specific task:

To look something up:

  • Configuration: the keys of the project manifest, the run config, and the training config, with their defaults.
  • Output: every array a run writes, and how to read it.
  • CLI reference: every command and option.
  • Glossary: the words these docs use.
  • The API reference, under API in the navigation, for using deeperfly as a library.

The source, the issue tracker, and the architecture decision records are on GitHub. If you use deeperfly in your work, see Citing and credits.