CLI commands¶
This reference is generated from the detail command.
detail¶
DETAIL — segmentation / tracking / embedding pipeline for behavioral video.
Usage:
detail [OPTIONS] COMMAND [ARGS]...
Options:
--version Print the running build (version, commit date, commit) and exit.
--help Show this message and exit.
detail analysis¶
Experiment-level analysis runs (§16) — recorded, batchable runs over a recording
selection, written to analysis/locations export above stays the quick scripting path.)
Usage:
detail analysis [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail analysis attach¶
Reattach to an analysis run — stream a live one's progress (it keeps running with
the app/CLI closed) or print a finished one's status. Ctrl-C detaches; it does not
cancel the run (use analysis cancel for that).
Usage:
detail analysis attach [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail analysis audit¶
Read the precision a run's reliability audit supports (§19).
Reads only. The judging itself is a blind review of video clips, which is a GUI loop
(docs/cli.md, "Not in the CLI") — but the number that review buys belongs to anyone
scripting against the run, which is what this is for.
Precision comes with its interval and its n, because 1.00 from n=3 and 1.00 from n=50
are the same figure and different claims. It is withheld entirely, with a reason, when the
audit no longer covers enough of the run to speak for it.
A clustering run's labels nest, so it is addressed by label path, and with no --behavior
it prints every label — a parent over everything under it, then each sub-label.
A temporal clustering run's precision comes from its clip review (clip_review.csv: every
clip of a cluster reviewed, written by finish_review), printed first with each cluster's
figure; a query run's from its review of every clip its cutoff keeps, one recording at a
time (§20). The earlier one-by-one audit (audit.csv) follows under its own heading, read as
it always was.
Usage:
detail analysis audit [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--run TEXT Authored run id (e.g. an_01). [required]
--behavior BEHAVIOR Report one behavior: a query behavior's id, or a
clustering label's path (rearing/supported). Omit
for the whole run — on a clustering run, every
label.
--cutoff FLOAT Report at this confidence cutoff instead of the
run's own.
--by-recording Split the estimate per recording — one cutoff can
behave differently per animal.
--by-cluster Clustering runs: under each label, each cluster's
precision and 95% confidence interval.
--goal-width FLOAT Say whether each 95% confidence interval of the
earlier one-by-one audit is this narrow (the GUI's
default is 0.20, i.e. ±0.10) — a sample-size goal,
not a judgment of the label. Nothing is said about
width without it.
--own-only Clustering runs: a label's own clusters only,
without its sub-labels' — the row INTERPRET's labels
panel shows as the label's "other".
--help Show this message and exit.
detail analysis cancel¶
Stop an active analysis run (kills its worker; no-op once terminal).
Usage:
detail analysis cancel [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail analysis cluster-montage¶
Write a cluster montage: a node's clips side by side, one GIF per clip, or a CSV list.
An export of a node's clips, the same files a clip grid's Export ▾ writes in the app
(Section 22): 25 clips unless --clips says otherwise, most typical first unless --sort says
otherwise, each cropped to its animal and labelled #rank · recording · start, all starting
together and each looping from its start the moment it ends. Drawn by default as the mask
and its trail, on white. Give at least one of --out, --per-clip-gifs and --csv.
Usage:
detail analysis cluster-montage [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--run TEXT Temporal-clustering run id (e.g. an_01).
[required]
--node INTEGER The node of the run's tree (as `temporal-
interpret --tree` lists them). [required]
--out FILE Write the montage itself: an .mp4 or .gif.
--per-clip-gifs DIRECTORY Write one GIF per clip into this folder,
named rank_recording_m-ss.t.gif.
--csv FILE Write the clips as a CSV list: a clip-query
CSV (`detail analysis query --from-csv`
reads it as example clips) with rank,
recording name, subject, times in seconds,
node and run after the standard columns.
--raw / --no-raw Draw the footage, with the animal outlined.
Without it, masks and keypoints are drawn on
white. [default: no-raw]
--mask / --no-mask Draw the clip's animal: outlined on the
footage, filled on white. [default: mask]
--keypoints / --no-keypoints Draw the keypoints the embedding run used.
[default: no-keypoints]
--mask-trail / --no-mask-trail Draw the outline's last half second, fading.
Default: on with --mask.
--keypoint-trail / --no-keypoint-trail
Draw each keypoint's path over the last half
second (needs --keypoints). [default: no-
keypoint-trail]
--trail-point TEXT A keypoint that leaves a trail, by name.
Repeatable; default every point.
--aligned / --as-recorded Turn each clip so the animal's body points
up, frame by frame, from the keypoint run
the embedding read and its heading
definition; a side-view embedding (aligned
by mirror) is flipped where it flipped
instead, never turned. A frame with no body
axis is drawn as recorded and marked.
[default: as-recorded]
--context FLOAT RANGE Seconds of footage either side of each clip:
each tile plays the clip and its context.
Labels still name the clip's own start.
[default: 0.0; 0.0<=x<=60.0]
--clips INTEGER RANGE How many clips, counted from the top of
--sort's order. [default: 25; x>=1]
--sort [typical|least-typical|recording|length|random]
The clips' order: most typical first, least
typical first, by recording, longest first,
or random (the same shuffle for a node every
time). [default: typical]
--blind Label recordings A, B, C instead of by name
(GIF names too).
--max-width INTEGER RANGE Width in pixels of --out or each --per-clip-
gifs GIF. Default: 640 for a GIF, 200-pixel
tiles for an mp4. [64<=x<=7680]
--fps FLOAT RANGE Frames a second of --out or each --per-clip-
gifs GIF. Default: 12 for a GIF, the
montage's own clock for an mp4.
[1.0<=x<=60.0]
--help Show this message and exit.
detail analysis delete¶
Delete an analysis run (its analysis/
Usage:
detail analysis delete [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--yes Skip the confirmation prompt.
--help Show this message and exit.
detail analysis export-query¶
Export a query run's calibrated behaviors as per-recording behavior-stream CSVs.
Each row carries origin: predicted, so re-importing one as a behavior stream can never
be read back as ground truth. A run whose search did not reach every recording is refused,
naming the ones it missed.
Usage:
detail analysis export-query [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--run TEXT Query run id (e.g. an_01). [required]
--out DIRECTORY Directory to create the export folder in; each
export makes a new one holding a behavior-stream CSV
per searched recording. [required]
--help Show this message and exit.
detail analysis export-temporal-clustering¶
Export a temporal-clustering run's vocabulary as per-recording behavior-stream CSVs.
Each row carries origin: predicted, so re-importing one as a behavior stream can never
be read back as ground truth.
Usage:
detail analysis export-temporal-clustering [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--run TEXT Temporal-clustering run id (e.g. an_01). [required]
--out DIRECTORY Directory to create the export folder in; each
export makes a new one holding a behavior-stream CSV
per fitted recording. [required]
--help Show this message and exit.
detail analysis list¶
List the experiment's analysis runs (an_NN).
Usage:
detail analysis list [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail analysis query¶
Search a cohort for a behavior you can name, from a few example clips (§20).
Writes one shard per (behavior x recording x subject) under analysis/
Usage:
detail analysis query [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--search TEXT Recording id to search (repeatable; at least
one). [required]
--embed-run TEXT Embedding run id shared by the searched
recordings (e.g. emb_01). [required]
--behavior TEXT Declare a named behavior (repeatable, in order);
attach clips with --example NAME=SPEC. Optional —
a bare --example makes one default behavior.
--example TEXT Example clip '[behavior=]recording[:track]:start-
end' — seconds (12.4-13.1) or frames with an f
suffix (1240f-1310f). Repeatable.
--from-csv FILE Also seed examples from a prior clip CSV, grouped
by its query_name column — the same path as
reusing a previous run's examples.
--non-example TEXT Non-example clip, same spec as --example. Only
methods whose negatives are 'optional' or
'required' can use them; the run is refused
otherwise. Repeatable.
--method [soft_knn] Search method, by id. The default is chosen on
measured cost, not on accuracy: soft_knn is fast.
Which method retrieves *better* has never been
measured, so each method's page says what is and
is not known about it (§20). [default: soft_knn]
--method-param NAME=VALUE A parameter of the chosen --method, e.g.
--method-param k=30. Repeatable; the method's
docs page lists what it takes (`detail docs`).
--track INTEGER RANGE Subject track id to search (single-subject
default 0). [default: 0; x>=0]
--split-gap FLOAT RANGE A break in tracking longer than this (seconds)
splits the trajectory into separate stretches to
search, and an example clip must sit inside one.
0 = never split. Default: ~4x the subject's frame
period. [x>=0.0]
--min-match FLOAT RANGE Shortest match to return, in seconds. A match is
never formed shorter than this, so a brief spike
cannot crowd out a longer match beside it. A
match of n frames lasts n frame periods. Applied
during the search, so changing it means searching
again. 0 = no minimum. [default: 0.0; x>=0.0]
--strict Fail if any example clip cannot be searched,
instead of skipping it.
--help Show this message and exit.
detail analysis query-calibrate¶
Calibrate a §20 query run: set cutoffs, name behaviors, finalize.
Every operation here is instant — it rewrites the run's authored state and reprojects the behavior artifact from search results already on disk. Nothing re-searches.
A behavior with no cutoff is absent from the artifact, not present with zero instances: §19 reads a named behavior with no rows as "we looked and it never happened", which is a different claim from "nobody has chosen a threshold yet".
Usage:
detail analysis query-calibrate [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--run TEXT Query run id (e.g. an_01). [required]
--cutoff BEHAVIOR=CONFIDENCE Set one behavior's confidence cutoff, e.g.
q01=0.82. Repeatable. Use BEHAVIOR=none to
clear one, which removes it from the artifact
again.
--name BEHAVIOR=NAME Rename a behavior, e.g. q01='supported
rearing'. Repeatable. The id never moves.
--curve BEHAVIOR Print the instances-per-cutoff curve for one
behavior and exit without editing.
--steps INTEGER RANGE Points on the --curve. [default: 21;
2<=x<=1001]
--finalize Mark the run complete — your statement that
you are done calibrating. Refused, naming the
recordings, while the search has not reached
every one, and naming the behaviors while any
has no cutoff (set them with --cutoff in the
same command).
--reopen Move a finalized run back to open so it can be
calibrated again.
--help Show this message and exit.
detail analysis rebuild¶
Rebuild an open run's results from its stored output and its current settings.
The repair for a run whose results are out of date — a change that did not finish writing
them, so the settings moved and the results did not. analysis status says when a run is in
that state. The expensive pass is untouched: this is one pass over the outputs, not another
fit or search.
Usage:
detail analysis rebuild [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail analysis run¶
Launch an analysis run over the selected recordings; writes an_NN.
Usage:
detail analysis run [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) to include (repeatable; at
least one). [required]
--module TEXT Analysis module to run. [default: location_export]
--tracking TEXT Completed tracking run to read tracks from, common
to every selected recording (e.g. track_01).
--tracking-ref TEXT RECORDING:track_NN — derive the tracking kind from
this run and resolve each recording's own match
(alternative to --tracking). Repeat it to cover
recordings tracked through different chains: each
reads its run of the one named setting it has.
--keypoints TEXT location_export: A completed keypoint track run to
export beside the tracks (keypoints.csv: where each
skeleton point was, on the rows tracks.csv has),
common to every selected recording (e.g. kt_01). Its
poses must have been assigned to the tracking run
this export reads. Unset: no keypoints.
--keypoints-ref TEXT location_export: RECORDING:kt_NN — derive the
keypoint track settings from this run and read each
recording's own run with them (alternative to
--keypoints).
--sample-fps FLOAT Rows to write per second for each subject. Leave
unset to write every tracked frame. When set, the
tracked frame nearest each tick of a clock at this
rate is kept and nothing is interpolated, so a
stretch with no tracking has no rows. A few per
second is enough for distance, speed and body shape,
and is many times faster than every frame.
--help Show this message and exit.
detail analysis snapshots¶
List an authored run's pinned artifacts, or show one (§21).
A snapshot is frozen when a number leaves the run — an export, a comparison, a finalize — so a result that was cited stays reachable after the run is reopened and re-cut. Which comparison used one is derived by reading the comparisons back, never stored on the snapshot.
Usage:
detail analysis snapshots [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--snapshot TEXT Show one snapshot in full rather than listing them.
--help Show this message and exit.
detail analysis status¶
Show one analysis run: module, status, recordings, settings, and output artifacts.
The settings block is the CLI's half of the GUI's Refine: the parameters this run was
launched with, ready to re-pass to analysis run. A parameter that names another artifact
(an embedding run, a tracking run) is marked [selection] — it is scoped to this experiment as
it stands, so re-passing one only means what you want if that artifact is still the right
input. The GUI re-asks for those rather than carrying them, for the same reason.
Usage:
detail analysis status [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail analysis temporal-clustering¶
Discover a vocabulary of behaviors across a recording selection (Section 22).
Each trajectory is cut into bouts, every pair of bouts is compared, and the comparison is grouped into a vocabulary. A cluster is a kind of movement and an instance is a bout.
The fit is one job and it leaves the run open, not complete: a vocabulary is not a
result until somebody has looked at it and named things. Interpret it with
analysis temporal-interpret.
The comparison is quadratic in the number of bouts. --max-bouts bounds it, and a run
fitted that way records what it left out so no result is quietly built on a fraction.
Usage:
detail analysis temporal-clustering [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording id to fit the vocabulary on
(repeatable; at least one). [required]
--embed-run TEXT Embedding run to read pose trajectories
from, by id (e.g. emb_02): that id in every
selected recording. Left unset, each
recording's own run with the one set of
embedding settings they all have is used,
whatever its id, and the choice is refused
when they share several: a vocabulary
silently fitted on whichever sorted first
would score differently tomorrow.
--embed-ref RECORDING:emb_NN Use the embedding settings of this run,
resolved to each recording's own run with
those settings, whatever its id (alternative
to --embed-run). Repeat it to pool
recordings whose embeddings were made
through different chains (e.g. two detection
models): each recording reads its run of the
one named setting it has, and one with none
or several is refused. Left out along with
--embed-run, the one set of settings every
recording has a run of is used.
--track INTEGER Track (subject) to cluster, in each
recording. [default: 0]
--method [codebook_viterbi|dtw_finch]
Clustering method. codebook_viterbi builds a
codebook of poses from a sample of each
recording and decodes the whole trajectory
against it; its cost grows in proportion to
the video pooled. dtw_finch cuts each
trajectory into bouts, compares every pair
with banded DTW and groups them with FINCH;
it draws slightly better boundaries, but its
cost grows with the square of the bout
count. The two tie on vocabulary quality. A
registry key rather than a hardcoded call,
so a further method needs no change here.
[default: codebook_viterbi]
--detector [binseg|novelty|speed|abd]
Transition detector that cuts each
trajectory into bouts. Left unset, the
method default (binseg, which measured
better than novelty) is used.
--min-bout FLOAT Drop bouts shorter than this many seconds.
Left unset, the method default is used.
--band FLOAT DTW warp tolerance in seconds (0 = rigid).
Left unset, the method default is used.
--max-bouts INTEGER dtw_finch: cap the bouts compared against
each other, evenly subsampled. The
comparison is O(bouts squared) and this is
the only bound on it. Every other bout is
still labeled afterwards. Omit to compare
every bout.
--fit-share FLOAT codebook_viterbi: Percent of each
recording's frames the codebook is built
from, evenly spaced. Every recording is
sampled at the same density, so a behavior
one animal shows briefly is as findable in a
large study as in a small one; every frame
is labelled afterwards whatever this is. It
does not set how many codewords there are,
so raising it costs the codebook fit, not
the decode. Left unset, the method default
is used.
--codewords INTEGER codebook_viterbi: How many codewords the
sample is grouped into: the finest setting
the vocabulary offers, and the decode's
states. Every pooled frame is decoded at a
cost roughly the square of this, so it is
the cost knob: halving it roughly quarters
the decode. Lower it first if a fit is
taking too long. A sample with fewer
distinct rows than this uses one codeword
per row. Left unset, the method default is
used.
--min-run FLOAT codebook_viterbi: runs shorter than this
many seconds are dropped (not merged into a
neighbour) rather than becoming instances.
Left unset, the method default is used.
--help Show this message and exit.
detail analysis temporal-interpret¶
Interpret a Section 22 temporal-clustering run: label nodes of its tree, finish.
A label on a node of the tree of behaviors covers everything beneath it unless a node inside
has its own. Labelling rewrites the run's authored state and its output from the comparison
on disk; nothing re-compares. --tree shows the nodes.
Usage:
detail analysis temporal-interpret [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--run TEXT Temporal-clustering run id (e.g. an_01).
[required]
--tree Print the merge tree, coarsest first: every node
with its member time, its share of the run, how
many clips it has and its label, then exit.
--name-node NODE=NAME Label a node of the merge tree, e.g.
118='immobility'. The label covers everything
beneath it unless a node inside has its own, more
specific one. A name that already exists adds the
node to that label. Repeatable; use NODE= to
remove a node's label.
--from-screen CMP_ID Record that the nodes labelled with --name-node
were found by this saved difference screen (a
comparison with --source nodes), so a later
comparison of the label over the same column can
say the screen chose the cluster it scores. Each
node must be one the screen kept, or sit inside
or above one.
--at-p LEVEL With --from-screen: the strictness the screen was
read at, a family-wise level in (0, 1) — the
GUI's Strictness slider. Its kept set is then the
clusters clearing the floor at p <= LEVEL, and
the label records the level. Default: the
screen's own 5% floor.
--rename-label OLD=NEW Rename a label, and with it every node that
carries it. Repeatable.
--merge-label SOURCE=INTO Move every node of label SOURCE to label INTO and
remove SOURCE. Repeatable.
--rebuild-cache Rebuild the node cache (every node's clips and
figures) from the run's fit: for a cache reported
stale, or one built before every clip was listed.
--finalize Mark the run complete, your statement that you
are done interpreting. Refused while nothing is
labelled (label a node with --name-node in the
same command).
--reopen Move a finalized run back to open so it can be
interpreted again.
--help Show this message and exit.
detail cache¶
This machine's caches: the display-only video previews.
Usage:
detail cache [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail cache clear¶
Delete a cache on this machine. Experiment data is never touched.
Usage:
detail cache clear [OPTIONS]
Options:
--previews Delete every video preview on this machine (they rebuild when
next needed).
--help Show this message and exit.
detail cache previews¶
Display-only video previews (small copies the clip montage plays from).
Usage:
detail cache previews [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail cache previews build¶
Build every missing preview for an experiment's recordings on this machine.
Each part's proxy, and each complete tracking run's masks. Already-built previews are skipped, so this is safe to re-run; minutes per hour of video.
Usage:
detail cache previews build [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) to build for (repeatable;
default: every recording).
--help Show this message and exit.
detail cache previews size¶
Print where this machine's previews are and how much disk they use.
Usage:
detail cache previews size [OPTIONS]
Options:
--help Show this message and exit.
detail comparison¶
Compare behavior between groups defined by recording metadata (§24).
Usage:
detail comparison [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail comparison delete¶
Delete a comparison and everything it wrote, exports included.
Usage:
detail comparison delete [OPTIONS] COMPARISON_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--yes Skip the confirmation prompt.
--help Show this message and exit.
detail comparison export¶
Write a comparison's tables and figures. Re-runnable; no recompute.
Usage:
detail comparison export [OPTIONS] COMPARISON_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--out PATH Where to write; defaults into the comparison's own
folder.
--format TEXT A figure format to write; repeat for several. Any
format matplotlib writes (jpg, tiff, eps, …); an
unknown one is refused before anything is drawn.
[default: pdf, svg, png]
--theme [dark|light] Background the figures are drawn on: light (white,
for print; the default) or dark (for slides). The
same design either way. [default: light]
--help Show this message and exit.
detail comparison list¶
List the experiment's comparisons (cmp_NN).
Usage:
detail comparison list [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail comparison run¶
Run a comparison and save it.
--aggregate-to says what one observation is. It is required when the cohort has
repeats — when some animal contributed more than one of the recordings being compared,
because then pooling and averaging-within-animal answer different questions and the tool must
not choose (§24). When nobody contributed two there is nothing to decide, and demanding an
answer is a question with one possible response.
The design — between units, paired within them, a trend, or a profile across three or more
named values — follows from what the --group-by column does within the unit, and is
printed when the run ends (§24).
--source nodes screens every node of a clustering run's node cache, named or not.
--source locations compares distance travelled, time moving, speed and body shape,
read from a location-export run, each measure by its own test.
Usage:
detail comparison run [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--source-run TEXT Analysis run to compare over: one holding a
behavior output, or, with --source
locations, a location-export run.
[required]
--snapshot TEXT Pinned copy of that run's artifact to
compare (snap_NN). Omit and the run's
current artifact is pinned and the id
recorded, so the numbers stay reproducible
after a re-cut.
--group-by TEXT Metadata column to compare across
(repeatable); also 'subject' or 'window_id'.
[required]
--aggregate-to TEXT Column to average through before grouping —
the unit of analysis. Pass --aggregate-to
none for one observation per recording.
REQUIRED.
--source [labels|nodes|locations]
What is measured: the run's labelled
behaviors (its §19 artifact); every
candidate node of a clustering run's node
cache, labelled or not: the difference
screen over clusters nobody has named yet;
or locations: distance travelled, time
moving, speed and body shape, read from a
location-export run. Nodes need a clustering
run with a current node cache. Locations
need a location-export run that measured the
body, on calibrated recordings. [default:
labels]
--level TEXT A value of the --group-by column; pass twice
to contrast the second against the first.
Two values of the one group_by column to
contrast, read as the second against the
first. Unset, a column with two values
contrasts them, a numeric column with more
is a trend, and a column with more non-
numeric values is a profile over all of
them: the largest difference between any
two.
--recording TEXT Restrict to these recordings.
--measure TEXT Measure to compute (repeatable).
--windows [whole|absolute|normalized|sliding]
Whole recording, fixed-duration tiles, equal
fractions, or a sliding window. [default:
whole]
--every FLOAT For kind=absolute: tile width in seconds.
[default: 600.0]
--parts INTEGER For kind=normalized: how many equal
fractions of each recording. [default: 3]
--length FLOAT For kind=sliding: window length in seconds.
[default: 300.0]
--step FLOAT For kind=sliding: how far the window
advances each step. [default: 60.0]
--draws INTEGER Permutation draws behind the difference
ranking's floor. A paired contrast over ten
or fewer units enumerates every sign flip
instead, and ignores this. [default: 200]
--seed INTEGER Seed for the permutation floor, so a ranking
reproduces. [default: 0]
--presence-s FLOAT Seconds of total time at a level for a unit
to count as having the behavior present
there. Within-unit designs count present
units toward the minimum, and a paired
contrast reports how many units are present
at each level. [default: 5.0]
--pseudo-count-s FLOAT Seconds of time added to both sides of a
within-unit ratio, in the measure's own
unit, so a node absent at one level has a
finite ratio rather than an infinite one
that would own the floor. [default: 1.0]
--min-units-fraction FLOAT The share of the cohort's units a behavior
must be present in for its within-unit
effect to be defined. Below it the effect is
undefined, never large: a node three of
eight animals ever showed cannot clear a
floor on their behalf. [default: 0.5]
--candidate-floor-s FLOAT Seconds of member time a cluster needs, over
the whole run, to be a candidate of the node
source. Below it a cluster is too small to
be judged from its clips, and every
candidate widens the family the floor is
taken over. [default: 30.0]
--suppress-nesting / --no-suppress-nesting
Over a hierarchical source, keep the best
clearing node and drop its ancestors and
descendants, repeating down the ranking, so
one behavior is reported once rather than as
every slice of itself. Ignored for a flat
source. [default: suppress-nesting]
--statistic [moderated_t|effect]
What a within-unit ranking scores each
behavior by, and the floor is taken over.
The moderated t is the mean per-unit effect
over its spread across units (plus the
family's median spread, so exact agreement
cannot own the floor): a behavior ranks by
how far the units agree, not by how large
its numbers are, and the floor stops
belonging to the sparsest behaviors. The
effect ranks by the mean per-unit effect
itself, as comparisons run before this
choice existed did. The effect is shown
either way. A between design has no per-unit
effects and ranks on the effect. [default:
moderated_t]
--location-sample-fps FLOAT Locations source: rows per second read for
each animal. The run's rows are thinned to
at most this many a second before anything
is measured, so runs exported at different
rates are measured alike. A run exported at
a lower rate is read as it is. Unset reads
every row. Pass --location-every-row to read
every row. [default: 5.0]
--location-every-row Locations source: read every row of the run
instead of thinning to --location-sample-
fps.
--location-smooth-s FLOAT Locations source: seconds the body's
position is averaged over before distance
and speed are measured. Without it, frame-
to-frame jitter adds distance for an animal
standing still. [default: 1.0]
--location-moving-threshold FLOAT
Locations source: speed on the smoothed
path, in centimetres per second, above which
an animal counts as moving. [default: 2.0]
--location-jump-speed FLOAT Locations source: a raw step faster than
this many of the animal's own body lengths
per second is a tracking jump, not movement.
The path is broken there rather than joined,
so the jump adds no distance. 7.5 is one and
a half body lengths in a fifth of a second.
[default: 7.5]
--help Show this message and exit.
detail dataset¶
Training datasets (§12) — export YOLO images+labels from a processing run.
Usage:
detail dataset [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail dataset attach¶
Reattach to a dataset export — stream a live one's progress (it keeps running with the
app/CLI closed) or print a finished one's status. Ctrl-C detaches; it does not cancel
the run (use dataset cancel for that).
Usage:
detail dataset attach [OPTIONS] DATASET_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail dataset create¶
Export a YOLO dataset from a processing run; blocks until complete.
Usage:
detail dataset create [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT Dataset name. [required]
--source-run TEXT Experiment processing run to export (run_NNN;
detection or tracking). [required]
--every-n INTEGER RANGE Keep every Nth frame (default: all frames).
[x>=1]
--val-split FLOAT Fraction of frames held out for validation.
[default: 0.15]
--min-contour-area INTEGER Drop polygons smaller than this area (px).
[default: 100]
--help Show this message and exit.
detail dataset delete¶
Delete a training dataset (images + labels + dataset.yaml).
Usage:
detail dataset delete [OPTIONS] DATASET_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--yes Skip the confirmation prompt.
--help Show this message and exit.
detail dataset keypoints¶
Build a YOLO-pose dataset (the label stage of a keypoint distill, on its own), taught
by the patch method or by finished keypoint detect runs; blocks until complete.
Registered as dataset keypoints.
Usage:
detail dataset keypoints [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT Dataset (and student) name. [required]
--teacher [patch|detect] What labels the frames, both unsmoothed:
`patch`, the patch method itself run on the
sampled frames (with --example-set and the
tracking runs), or `detect`, finished
keypoint detect runs' stored poses, each
given to a tracked animal. [required]
--recording TEXT Recording name (or id) to label from
(repeatable): its only complete tracking run
for --teacher patch, its only complete
keypoint detect run for --teacher detect.
--detect-run RECORDING:kd_NN --teacher detect: a named keypoint detect
run, for a recording with several
(repeatable; alternative to --recording).
--tracking-run RECORDING:track_NN
A named tracking run, for a recording with
several (repeatable). --teacher patch: the
run whose animals the method labels
(alternative to --recording). --teacher
detect: the run the detect run's poses are
given to; left out, the one complete
tracking run on the detect run's detection
run.
--example-set TEXT --teacher patch: the example set (ex_NN) the
patch method learns from.
--model TEXT --teacher patch: the patch method.
[default: dinov3_match]
--model-variant TEXT --teacher patch: the method's size (default:
its own default).
--label-backend [cpu|cuda|mps] --teacher patch: where the method runs
(default: CUDA if available).
--label-device INTEGER --teacher patch: CUDA device index for
labelling (repeatable).
--decode [skeleton|per_point] --teacher patch: How a frame's candidates
become points. 'skeleton' chooses jointly:
the midline as a tree with edge lengths
learned from the examples, left/right pairs
as two distinct places (the default when the
skeleton has edges). 'per_point' takes each
point's best candidate on its own.
--side-rule [auto|midline|hard|soft|off]
--teacher patch: How a left/right pair is
kept apart under the skeleton decode. 'auto'
decides per pair from the example clicks
(the default when the skeleton has a pair):
'midline' puts each member on its own side
of the midline (right from above), 'hard'
keeps their relative order across the body
(right from the side). 'soft' only penalises
a swap; 'off' ignores sides (the default
without pairs).
--crop-px INTEGER --teacher patch: Side of the square crop
around each detection's box the method
matches in, in pixels; a multiple of the
backbone's patch size (16). Omit for 448.
Every animal is resized to this crop, so a
patch is a fixed fraction of body size
whatever the rig.
--n-frames INTEGER RANGE Frames to label across the chosen
recordings, shared out by each recording's
tracked rows, one draw per equal time slice.
[x>=1; required]
--val-split FLOAT Fraction of labeled frames held out for
validation, per recording. [default: 0.15]
--score-cutoff FLOAT A point placed with a score below this is
taught as not visible (v = 0); the box is
still taught. Omit for the teacher method's
own default cut-off, recorded on the
dataset.
--exclude-audit-s FLOAT Never use an audit frame, nor any frame
within this many seconds of one, so the
labels that score a method are never what
builds it. [default: 1.0]
--every-n-frames INTEGER RANGE Consider only every n-th teacher row as a
candidate, so neighbouring frames of one
posture are not drawn together. [default:
1; x>=1]
--help Show this message and exit.
detail dataset label¶
Label a random frame sample with a prompt-capable model into a YOLO dataset; blocks until complete.
Usage:
detail dataset label [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT Dataset name. [required]
--recording TEXT Source recording id (repeatable; default:
every recording in the experiment that has
video).
--class NAME:PROMPT A class as NAME:PROMPT, e.g. --class
'mouse:a mouse' (repeatable).
--model TEXT The teacher: a prompt-capable model that
labels the frames (e.g. sam3). [default:
sam3]
--model-variant TEXT Teacher size/variant, if the model has size
options; omit for the default.
--n-frames INTEGER RANGE Total frames to sample and label, allocated
proportionally to recording length. [x>=1;
required]
--sampling [uniform|stratified]
Within each video: 'stratified' spreads
picks evenly across time (one draw per
equal-width bin); 'uniform' is fully random.
[default: stratified]
--logit-threshold FLOAT Confidence threshold for keeping a
detection. [default: 0.5]
--min-contour-area INTEGER Drop mask contours smaller than this many
pixels. [default: 100]
--val-split FLOAT Fraction of labeled frames held out for
validation (stratified per recording).
[default: 0.15]
--background-share FLOAT RANGE Largest share of the dataset that may be
empty background. A background image is one
where the teacher found none of the classes;
it is kept with an empty label so the
trained detector learns what nothing there
looks like. 0 keeps none. [default: 0.1;
0.0<=x<=0.5]
--negative-prompt TEXT Something in the video that touches the
animal but is not it, such as a tether,
cable or patch cord. The teacher labels it
as a class of its own, so the trained
detector learns to tell it apart from your
classes and never reports it. Leave empty
for none. For a tethered animal, `cable`
works with SAM 3 where `tether` finds
nothing. Check it with Test prompts: it must
not take part of the animal, such as a tail.
--backend [cpu|cuda|mps] Compute backend. [default: cpu]
--device INTEGER Device index (repeatable for multi-GPU; cuda
only). Left out: GPU 0 alone.
--help Show this message and exit.
detail dataset list¶
List the experiment's training datasets.
Usage:
detail dataset list [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail dataset status¶
Show one dataset's record.
Usage:
detail dataset status [OPTIONS] DATASET_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail detection¶
Detection (§7) — find instances of a text-prompted target across frames.
Usage:
detail detection [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail detection prompt-test¶
Preview a detection model on a few sampled frames (Section 8) — a fast QC loop before a full run. An open-vocab model compares each --prompt candidate for --class; a trained/local model previews its own classes (filter with --show-class, one result column per class).
The model runs wide open and keeps every proposal; --min-conf chooses what the summary counts and what the --save-as overlays draw.
Usage:
detail detection prompt-test [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--model TEXT Detection model id (e.g. sam3). [required]
--variant TEXT Model size/variant; omit for the default.
--class TEXT Class label applied to every candidate prompt
(open-vocab models).
--prompt TEXT Candidate prompt text (repeatable — one per
phrasing to compare). Open-vocab models only.
--show-class TEXT Trained/local model: preview only these classes
(repeatable; default all).
--n INTEGER Random frames to sample. [default: 8]
--min-conf FLOAT RANGE Only show detections at or above this confidence.
The model kept every proposal it found, so moving
this changes the picture, not the run — slide down
to see what a looser threshold would have caught,
up to see what a stricter one would have cut.
[default: 0.5; 0.0<=x<=1.0]
--save-as TEXT Write overlay JPGs + test.json to
detections/prompt_tests/<save-as>/.
--seed INTEGER RNG seed for reproducible sampling.
--backend [cpu|cuda|mps] Compute backend. [default: cpu]
--device INTEGER Device index (repeatable for multi-GPU; cuda
only). Left out: GPU 0 alone.
--help Show this message and exit.
detail detection run¶
Submit a detection run; blocks until complete.
Usage:
detail detection run [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the
experiment. [required]
--model TEXT Model id: built-in (sam3), experiment-
trained (model_NNN), or imported (see `model
list`). Source is resolved automatically.
[required]
--variant TEXT Model size/variant, if the model has size
options; omit for the default.
--class TEXT Class label for a pretrained model's
detections; omit for a local model.
--prompt TEXT Text prompt for a pretrained (open-set)
model; omit for a local model.
--batch-size INTEGER RANGE Frames per GPU forward pass. Omit to use the
model's default (4 for batch-capable YOLO
models, 1 for SAM3); bounded by GPU memory.
[x>=1]
--conf FLOAT Minimum detection confidence to keep (0–1).
[default: 0.5]
--every-n-frames INTEGER RANGE Use every Nth frame of the video: 1 detects
every frame, 4 detects frames 0, 4, 8, …
Cost falls roughly in proportion. Tracking
and embedding count the same source frames,
so they can only go coarser by a multiple of
this. [default: 1; x>=1]
--backend [cpu|cuda|mps] Compute backend. [default: cpu]
--device INTEGER Device index (repeatable for multi-GPU; cuda
only). Left out: GPU 0 alone.
--help Show this message and exit.
detail distill¶
Distill a fast detector — label with a prompt-capable model, then train YOLO (§12).
Usage:
detail distill [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail distill attach¶
Reattach to a distill run — stream a live one (it keeps running with the CLI closed)
or print a finished one's status. Ctrl-C detaches; it does not cancel the run (use
distill cancel for that).
Usage:
detail distill attach [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail distill cancel¶
Cancel a running distill run — stops its coordinator and the live stage worker.
Usage:
detail distill cancel [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail distill delete¶
Delete a distill run's index record. The produced dataset and trained model are
independent and are left intact (delete them with dataset delete / train delete).
Usage:
detail distill delete [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--yes Skip the confirmation prompt.
--help Show this message and exit.
detail distill list¶
List the experiment's distill runs (distill_NNN).
Usage:
detail distill list [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail distill resume¶
Resume a failed / cancelled distill run — reuse a complete dataset, resume a partial model — into the same record.
Usage:
detail distill resume [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail distill run¶
Label a frame sample, then train a YOLO detector on it — one durable run; blocks until complete (Ctrl-C detaches, the run keeps going in the background).
Usage:
detail distill run [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT Distill run name (seeds the dataset +
model). [required]
--recording TEXT Source recording id (repeatable; default:
every recording in the experiment that has
video).
--class NAME:PROMPT A class as NAME:PROMPT, e.g. --class
'mouse:a mouse' (repeatable).
--n-frames INTEGER RANGE Total frames to sample and label, allocated
proportionally to recording length. [x>=1;
required]
--sampling [uniform|stratified]
Within each video: 'stratified' spreads
picks evenly across time (one draw per
equal-width bin); 'uniform' is fully random.
[default: stratified]
--logit-threshold FLOAT Confidence threshold for keeping a
detection. [default: 0.5]
--min-contour-area INTEGER Drop mask contours smaller than this many
pixels. [default: 100]
--val-split FLOAT Fraction of labeled frames held out for
validation (stratified per recording).
[default: 0.15]
--background-share FLOAT RANGE Largest share of the dataset that may be
empty background. A background image is one
where the teacher found none of the classes;
it is kept with an empty label so the
trained detector learns what nothing there
looks like. 0 keeps none. [default: 0.1;
0.0<=x<=0.5]
--negative-prompt TEXT Something in the video that touches the
animal but is not it, such as a tether,
cable or patch cord. The teacher labels it
as a class of its own, so the trained
detector learns to tell it apart from your
classes and never reports it. Leave empty
for none. For a tethered animal, `cable`
works with SAM 3 where `tether` finds
nothing. Check it with Test prompts: it must
not take part of the animal, such as a tail.
--label-model TEXT The teacher: a prompt-capable model that
labels the frames (e.g. sam3). [default:
sam3]
--label-model-variant TEXT Teacher size/variant, if the model has size
options; omit for the default.
--base-model TEXT Pretrained YOLO-seg weights the trainer
fine-tunes. [default: yolo11s-seg.pt]
--trainer TEXT Trainer id. [default: ultralytics_yolo]
--epochs INTEGER Maximum training epochs.
--batch-size INTEGER Images per training batch.
--imgsz INTEGER Training image size (square).
--patience INTEGER Early stopping: stop if no improvement for
this many epochs (0 disables).
--label-backend [cpu|cuda|mps] Labeling backend (SAM3 requires CUDA;
default: best available).
--label-device INTEGER Labeling CUDA device index (repeatable).
--train-backend [cpu|cuda|mps] Training backend (default: the best
available: CUDA, then MPS, then CPU).
--train-device INTEGER Training CUDA device index (repeatable).
--help Show this message and exit.
detail distill status¶
Show one distill run: status + each stage's produced dataset / model id.
Usage:
detail distill status [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail docs¶
Open the DETAIL documentation in your browser.
Builds the site into a per-user cache on first use (offline; no network), then
opens it. TOPIC is an optional page name — e.g. concepts, cli,
reference/parameters.
Usage:
detail docs [OPTIONS] [TOPIC]
Options:
--serve Run a local live-reloading docs server (mkdocs serve) instead of
opening the built site.
--help Show this message and exit.
detail doctor¶
Check this machine's setup (§1): PyTorch/CUDA, the SAM 3 backend, Hugging Face, and model weights. It starts with a System section — the build, OS, Python, GPU, NVIDIA driver, PyTorch build and package versions — made to be pasted into a bug report whole. Runs the checks in a fresh subprocess, so it reflects the current install state (handy for debugging an install over SSH). Each failing check names the docs page that explains the fix and prints the copy-paste command that fixes it. Exits non-zero if any check failed.
Usage:
detail doctor [OPTIONS]
Options:
--help Show this message and exit.
detail embedding¶
Embedding (§14) — embed each tracked detection into a feature vector.
Usage:
detail embedding [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail embedding run¶
Submit an embedding run; blocks until complete. --align rotate|mirror with
--keypoint-run kt_NN --heading NAME turns each animal to face right (§14).
Usage:
detail embedding run [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the
experiment. [required]
--tracking TEXT Tracking run whose tracks to embed (e.g.
track_01). [required]
--tracks TEXT Comma-separated track ids to embed (e.g. 0
or 0,1). Mutually exclusive with --all-
tracks.
--all-tracks Embed every track in the run (mutually
exclusive with --tracks).
--model TEXT Embedding model to run (a registered model
id). The default is DINOv3 ViT (dinov3_vit).
[default: dinov3_vit]
--variant TEXT Model size/variant (e.g. vit_base); omit for
the model's default size (ViT-L for DINOv3
ViT).
--input-size INTEGER Model input resolution (px), the square the
model actually sees. Sets the backbone's
image-processor size and the renderer's
emitted size together. Omit for the model's
own input size (e.g. 224 for DINOv3). Not
every model is resizable.
--readout TEXT Feature read-out: how the backbone output
becomes one vector (model-dependent, e.g.
pooler / cls_patch / gap / gmp / gap_gmp).
Omit for the model's default.
--resize INTEGER Final square size the renderer emits (px),
independent of the model input size. Omit to
follow input_size or the model's own input
size. The renderer then hands the model
exactly that, instead of a larger canvas it
re-downscales every frame.
--constructor [silhouette_centered|masked_color_centered|masked_color_centered_contrast|full_frame]
Named input-image constructor. The centered
ones crop each mask and center it at true
scale in a shared canvas. Ignored when a
renderer_spec is given directly.
--batch-size INTEGER RANGE Images per forward pass. [default: 32;
1<=x<=1024]
--every-n-frames INTEGER Use every Nth frame of the video. Omit to
embed every frame the tracking run produced.
Counted in source frames, so it must be a
multiple of what tracking used: after
tracking at 2, 4 embeds half of what it
produced.
--align [none|rotate|mirror] Egocentric alignment: make every animal face
the same way before embedding. 'rotate'
(overhead camera) turns each image so the
head points right; 'mirror' (side camera)
flips an animal facing left so it faces
right; 'none' embeds the image as cropped.
Needs a keypoint track run and a heading
definition. A frame with no heading within
the gap is not embedded, so an aligned run
never mixes turned and unturned pictures.
[default: none]
--keypoint-run TEXT The keypoint track run (kt_NN) the heading
is read from; it must come from this
embedding's own tracking run.
--heading TEXT A saved heading definition: the skeleton
points whose mean is the front and the
points whose mean is the back. The heading
is the direction from back to front, in
pixels; the resolved definition is copied
onto the run.
--max-gap-s FLOAT RANGE A frame without its own heading takes one
interpolated across the gap to the nearest
defined frames, when that gap is no longer
than this, in seconds; in a longer gap the
frame is not embedded and is counted as lost
to heading. [0.0<=x<=30.0]
--mirror-hold-s FLOAT RANGE mirror only: the animal must face the new
way for this long, in seconds, before the
image flips, so a heading hovering near
straight-on does not flicker.
[0.0<=x<=30.0]
--facing-camera-ratio FLOAT RANGE
A heading axis shorter than this fraction of
the track's typical axis length (its 95th
percentile over the run) is undefined: an
animal facing the camera foreshortens its
axis to noise, which is where headings flip.
[0.0<=x<=1.0]
--backend [cpu|cuda|mps] Compute backend. [default: cpu]
--device INTEGER Device index (repeatable for multi-GPU; cuda
only). Left out: GPU 0 alone.
--help Show this message and exit.
detail experiment¶
Experiment lifecycle and inspection.
Usage:
detail experiment [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail experiment add-column¶
Add an (empty) recording-information column, so it can be filled per recording.
Usage:
detail experiment add-column [OPTIONS] NAME
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail experiment apply-stream-preset¶
Import one stream per recording from a saved preset (Section 3).
The bulk form of a mapping worked out once. A recording whose file fails is reported and skipped, so one unreadable file does not sink the batch.
Usage:
detail experiment apply-stream-preset [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--preset TEXT Saved preset name. [required]
--name TEXT Stream name to give each import. [required]
--sources FILE CSV of `recording,file[,offset_s]` — one row per
recording. Paths resolve relative to this file. The
offset column is per recording, which is the point:
each video and logger pair has its own skew. Head
the first column `video` to key rows on each
recording's video file name (any case, extension
optional) instead of its id or name. [required]
--help Show this message and exit.
detail experiment create¶
Create a new experiment directory at
Usage:
detail experiment create [OPTIONS] NAME
Options:
--dir DIRECTORY Parent directory to create the experiment inside.
[required]
--help Show this message and exit.
detail experiment delete-column¶
Remove a recording-information column and its value on every recording.
Usage:
detail experiment delete-column [OPTIONS] NAME
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail experiment delete-heading¶
Delete a saved heading definition.
Usage:
detail experiment delete-heading [OPTIONS] NAME
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail experiment delete-stream-preset¶
Delete a saved stream-import preset.
Usage:
detail experiment delete-stream-preset [OPTIONS] NAME
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail experiment export¶
Pack an experiment into one portable archive (§15) — slim by default (outputs + metadata + models; no source video / datasets). scp it to another machine.
An earlier archive saved inside the experiment is never packed. A folder that is a symlink is not followed; each one left out is named.
Shows a bar on stderr through scanning, checking, hashing and packing.
Usage:
detail experiment export [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--out FILE Archive path (default <id>.segproj.tar beside the
experiment).
--include-video Include source video (large).
--include-datasets Include training datasets (large).
--gzip gzip the archive.
--help Show this message and exit.
detail experiment export-heading¶
Write a saved heading definition to a standalone, shareable YAML file.
Usage:
detail experiment export-heading [OPTIONS] NAME
Options:
--experiment DIRECTORY Experiment directory. [required]
--out FILE Write the definition to this file. [required]
--help Show this message and exit.
detail experiment export-metadata¶
Write the experiment's metadata to a CSV template (recording_id, name, file, then every column, one row per recording) — fill the blanks offline, then import-metadata.
Usage:
detail experiment export-metadata [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--csv FILE Write the grouping variables to this CSV (a fill-in
template, §11). [required]
--help Show this message and exit.
detail experiment export-stream-preset¶
Write a saved stream preset to a standalone, shareable YAML file.
Usage:
detail experiment export-stream-preset [OPTIONS] NAME
Options:
--experiment DIRECTORY Experiment directory. [required]
--out FILE Write the preset to this file. [required]
--help Show this message and exit.
detail experiment import¶
Import an experiment bundle into the managed workspace (§15).
With --replace, first prints what the replace deletes and the bundle does not bring back: video files (count and size), datasets and export records.
Shows a bar on stderr through reading, extracting, verifying and placing.
Usage:
detail experiment import [OPTIONS] ARCHIVE
Options:
--replace Replace an existing experiment with the same id. Deletes what
the bundle does not bring back (a slim bundle's video and
datasets, export records); the list is printed first.
--name TEXT Import under a different id.
--help Show this message and exit.
detail experiment import-heading¶
Import a heading definition from a standalone YAML file (§14).
Usage:
detail experiment import-heading [OPTIONS] PATH
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT Save under this name instead of the file's.
--replace Overwrite an existing definition with the same name.
--help Show this message and exit.
detail experiment import-metadata¶
Bulk-apply recording metadata from a CSV — merge-only, blank cells skipped, a row matching no recording rejected (nothing applied on any error).
Usage:
detail experiment import-metadata [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--csv FILE CSV with a key column + grouping-variable columns
(§11). [required]
--key TEXT The column that links each row to a recording.
Default: recording_id, then name, then a video file
name column (file, file_name, filename, video,
video_file, video_name; any case). A column named
here that is not recording_id or name is matched as
the video file name: base name, any case, extension
optional.
--dry-run Validate the CSV and print the report; apply
nothing.
--help Show this message and exit.
detail experiment import-stream-preset¶
Import a stream preset from a standalone YAML file (Section 3).
Usage:
detail experiment import-stream-preset [OPTIONS] PATH
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT Save under this name instead of the file's.
--replace Overwrite an existing preset with the same name.
--help Show this message and exit.
detail experiment list-headings¶
List saved heading definitions (§14 egocentric alignment).
Usage:
detail experiment list-headings [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail experiment list-stream-presets¶
List saved stream-import presets (Section 3).
Usage:
detail experiment list-stream-presets [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail experiment propagate-calibration¶
Copy --source's distance calibration onto other recordings that have none (Section 10). Never replaces; a recording that already has one is skipped.
Usage:
detail experiment propagate-calibration [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--source TEXT Recording (id or name) to copy the distance
calibration from. [required]
--only TEXT Limit to these recordings (id or name); repeatable.
Default: every other recording in the experiment.
--help Show this message and exit.
detail experiment propagate-fov¶
Copy --source's field of view onto other recordings that have none (Section 10).
Never replaces: a recording that already has a field of view is skipped and reported, with the tracking runs holding it named if any do. Camera motion does not travel — a keyframed polygon is copied at its frame-0 position.
Usage:
detail experiment propagate-fov [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--source TEXT Recording (id or name) to copy the field of view
from. [required]
--only TEXT Limit to these recordings (id or name); repeatable.
Default: every other recording in the experiment.
--help Show this message and exit.
detail experiment propagate-points¶
Copy --source's points of interest onto other recordings that have none (Section 10). Never replaces; a recording that already has any is skipped. A point with an active frame window is left behind.
Usage:
detail experiment propagate-points [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--source TEXT Recording (id or name) to copy the points of
interest from. [required]
--only TEXT Limit to these recordings (id or name); repeatable.
Default: every other recording in the experiment.
--help Show this message and exit.
detail experiment propagate-rois¶
Copy --source's regions of interest onto other recordings that have none (Section 10). Never replaces; a recording that already has any is skipped. A region with an active frame window is left behind — that window belongs to one recording's timeline.
Usage:
detail experiment propagate-rois [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--source TEXT Recording (id or name) to copy the regions of
interest from. [required]
--only TEXT Limit to these recordings (id or name); repeatable.
Default: every other recording in the experiment.
--help Show this message and exit.
detail experiment save-heading¶
Save a heading definition: the heading points from the back set's mean to the front set's mean. Checked against a skeleton when an embedding run uses it.
Usage:
detail experiment save-heading [OPTIONS] NAME
Options:
--experiment DIRECTORY Experiment directory. [required]
--front TEXT Comma-separated skeleton point names whose mean is
the front. [required]
--back TEXT Comma-separated skeleton point names whose mean is
the back. [required]
--replace Overwrite an existing definition with this name.
--help Show this message and exit.
detail experiment set-metadata¶
Set recording-information values on one recording.
A new key becomes a column on every recording (blank elsewhere), the same as adding it in the GUI — the table is experiment-wide.
Usage:
detail experiment set-metadata [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--set KEY=VALUE Set one recording-information value (repeatable).
[required]
--help Show this message and exit.
detail experiment status¶
Show experiment identity + recording list + per-recording run counts.
Usage:
detail experiment status [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail export¶
Get your data out — one catalogue of targets, the same on every surface (#336).
Every target writes the data behind its artifact as well as the artifact, so a figure can be
rebuilt outside DETAIL rather than only looked at. Each export folder also carries a
params.csv (the settings that produced the run) and an export.yaml manifest.
Usage:
detail export [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail export attach¶
Reattach to an export run — stream a live one's progress (it keeps running with the
app/CLI closed) or print a finished one's status. Ctrl-C detaches; it does not cancel the
run (use export cancel for that).
Usage:
detail export attach [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail export cancel¶
Stop an active export run. Whatever it has already written is kept — an export is stopped between targets, not killed mid-file. No-op once terminal.
Usage:
detail export cancel [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail export list¶
Show what this subject can produce, and what ships beside each artifact.
Usage:
detail export list [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--subject [experiment|recording|run|analysis_run|distill]
What to export from. Inferred from whichever
of --recording / --run / --analysis-run /
--distill-run you pass; required only when
none is given (an experiment).
--recording TEXT Recording id to export from.
--run TEXT Experiment-level processing run id (run_NNN)
to export from.
--analysis-run TEXT Analysis run id (an_NN).
--distill-run TEXT Distill run id (distill_NNN).
--help Show this message and exit.
detail export run¶
Write the chosen targets into one new folder under --out, as a run.
The folder is named for you — experiment, module, run, and when — so two exports never collide and one is still identifiable months later on somebody else's machine.
Blocks until complete. Ctrl-C cancels it — a foreground command you interrupt should
stop, and somebody who sees a long estimate on a tracks export and reaches for Ctrl-C
means it. To start one and walk away, launch it and come back with export attach, or use
the app, where an export never blocks anything.
Usage:
detail export run [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--subject [experiment|recording|run|analysis_run|distill]
What to export from. Inferred from whichever
of --recording / --run / --analysis-run /
--distill-run you pass; required only when
none is given (an experiment).
--recording TEXT Recording id to export from.
--run TEXT Experiment-level processing run id (run_NNN)
to export from.
--analysis-run TEXT Analysis run id (an_NN).
--distill-run TEXT Distill run id (distill_NNN).
--target TEXT Target id (see `export list`). Repeatable —
several targets go into one folder.
[required]
--out DIRECTORY Where to put the export folder. The folder
itself is named for you. [required]
--cluster TEXT Export only this cluster (a source label).
--instance TEXT Export only these instances, by instance_id.
Repeatable — this is how a selection is
exported rather than a whole cluster.
--frames START:END Export only this inclusive frame range, e.g.
1200:1340: the frames `--target clip`
writes, or the rows of every file `--target
frame_labels` writes.
--track INTEGER Which subject a clip outlines (default 0).
--embed-run TEXT The embedding run a clip's frames are read
through; it resolves the tracking and
detection runs the masks come from.
--render [raw|overlay|mask] Clip flavour: raw footage, the mask drawn
over it, or the mask alone. Repeatable —
several flavours cost one decode, not
several.
--crop / --full-frame Cut a square around the subject rather than
keeping the whole field of view.
--size INTEGER Longest side of an exported clip, in pixels
(default 640).
--for-recording TEXT Export only this recording (an id or a name)
of a run or analysis run. Repeatable.
Without it every recording is exported,
which for video is the size of the whole
run: see `--estimate`. A target that writes
one file for the whole run says so in
`export list` (no `recordings` under its
scopes).
--estimate Print how big the export would be and how
long it would take, per target and in total,
then stop without writing anything. A video
target times a few dozen frames (about a
second); the rest is read from what is on
disk.
--ignore-free-space Start even when the estimate says the export
will not fit on the destination's drive.
Without it the command refuses, because a
100 GB export onto a nearly full drive fails
an hour in.
--theme [dark|light] Background the figures are drawn on: light
(white, for print; the default) or dark (for
slides). The same design either way.
--help Show this message and exit.
detail hf-token¶
Validate + store a Hugging Face token in ~/.config/detail/credentials.yaml.
Usage:
detail hf-token [OPTIONS] TOKEN
Options:
--help Show this message and exit.
detail keypoints¶
Keypoints (§26): example sets, the detect and track stages, export and distill. The detect and track stages land with their modules.
Usage:
detail keypoints [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail keypoints detect¶
Place keypoints on the animals a detection run found in the selected recordings
(keypoint detect, §26); writes an experiment run (run_NNN). Every pose is stored per frame
with no subject; keypoints track gives each one to a tracked animal. Point at the
detections with either --detection det_NN (that id must be complete in every selected
recording) or --detection-ref RECORDING:det_NN. A method that learns from examples
(dinov3_match) needs --example-set; a setting left out is resolved against the set's
skeleton and recorded on the run. The same command is process keypoint_detect.
Usage:
detail keypoints detect [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) to include
(repeatable; at least one). [required]
--detection TEXT Detection run id, complete in every selected
recording. Detection run to place keypoints
on (e.g. det_01). A method that works per
detection crops each of its detections (and
reads their masks if it uses them); a whole-
frame method uses its frames. Keypoints are
stored per frame with no subject: keypoint
track gives each pose to a tracked animal.
--detection-ref TEXT RECORDING:det_NN — derive the detection kind
from this run and resolve each recording's
own match (alternative to --detection, for
recordings with divergent ids).
--model TEXT The keypoint method, by registered id
(dinov3_match). No default: which method
fits is a fact about the animal and the
camera, and a default is where a wrong one
hides. [required]
--variant TEXT The method's size variant; omit for its
default (dinov3_match: vit_large). For a
method on a shared backbone this is the
backbone's size.
--example-set TEXT The example set the method learns from
(ex_NN): the marked frames of the skeleton
to place. Required by a method that needs
examples; refused by one that does not.
--min-pose-confidence FLOAT RANGE
Keep a pose only if the method's confidence
in the whole animal is at least this. Only
for a method that reports one (a trained
pose model); omit for 0.25. Lower keeps more
faint or partly hidden animals and more
false ones. Poses below it are not stored,
so changing it means running again.
[0.0<=x<=1.0]
--decode [skeleton|per_point] How a frame's candidates become points.
'skeleton' chooses jointly: the midline as a
tree with edge lengths learned from the
examples, left/right pairs as two distinct
places (the default when the skeleton has
edges). 'per_point' takes each point's best
candidate on its own.
--side-rule [auto|midline|hard|soft|off]
How a left/right pair is kept apart under
the skeleton decode. 'auto' decides per pair
from the example clicks (the default when
the skeleton has a pair): 'midline' puts
each member on its own side of the midline
(right from above), 'hard' keeps their
relative order across the body (right from
the side). 'soft' only penalises a swap;
'off' ignores sides (the default without
pairs).
--crop-px INTEGER Side of the square crop around each
detection's box the method matches in, in
pixels; a multiple of the backbone's patch
size (16). Omit for 448. Every animal is
resized to this crop, so a patch is a fixed
fraction of body size whatever the rig.
--every-n-frames INTEGER Use every Nth frame of the video. Omit to
use every frame the detection run holds.
Counted in source frames, so it must be a
multiple of what detection used.
--batch-size INTEGER Frames per forward pass. Lower it if the
method runs out of GPU memory; it never
changes a result. [default: 16]
--backend [cpu|cuda|mps] Compute backend. [default: cpu]
--device INTEGER Device index (repeatable for multi-GPU; cuda
only). Left out: GPU 0 alone.
--help Show this message and exit.
detail keypoints distill¶
Distill a teacher into a fast YOLO-pose student: label, train, then register it as a
keypoint method, as one durable run (§12). The teacher is the patch method run on the
sampled frames (--teacher patch) or finished keypoint detect runs (--teacher detect).
Blocks until complete (Ctrl-C detaches; the run keeps going, distill attach rejoins).
Usage:
detail keypoints distill [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT Dataset (and student) name. [required]
--teacher [patch|detect] What labels the frames, both unsmoothed:
`patch`, the patch method itself run on the
sampled frames (with --example-set and the
tracking runs), or `detect`, finished
keypoint detect runs' stored poses, each
given to a tracked animal. [required]
--recording TEXT Recording name (or id) to label from
(repeatable): its only complete tracking run
for --teacher patch, its only complete
keypoint detect run for --teacher detect.
--detect-run RECORDING:kd_NN --teacher detect: a named keypoint detect
run, for a recording with several
(repeatable; alternative to --recording).
--tracking-run RECORDING:track_NN
A named tracking run, for a recording with
several (repeatable). --teacher patch: the
run whose animals the method labels
(alternative to --recording). --teacher
detect: the run the detect run's poses are
given to; left out, the one complete
tracking run on the detect run's detection
run.
--example-set TEXT --teacher patch: the example set (ex_NN) the
patch method learns from.
--model TEXT --teacher patch: the patch method.
[default: dinov3_match]
--model-variant TEXT --teacher patch: the method's size (default:
its own default).
--label-backend [cpu|cuda|mps] --teacher patch: where the method runs
(default: CUDA if available).
--label-device INTEGER --teacher patch: CUDA device index for
labelling (repeatable).
--decode [skeleton|per_point] --teacher patch: How a frame's candidates
become points. 'skeleton' chooses jointly:
the midline as a tree with edge lengths
learned from the examples, left/right pairs
as two distinct places (the default when the
skeleton has edges). 'per_point' takes each
point's best candidate on its own.
--side-rule [auto|midline|hard|soft|off]
--teacher patch: How a left/right pair is
kept apart under the skeleton decode. 'auto'
decides per pair from the example clicks
(the default when the skeleton has a pair):
'midline' puts each member on its own side
of the midline (right from above), 'hard'
keeps their relative order across the body
(right from the side). 'soft' only penalises
a swap; 'off' ignores sides (the default
without pairs).
--crop-px INTEGER --teacher patch: Side of the square crop
around each detection's box the method
matches in, in pixels; a multiple of the
backbone's patch size (16). Omit for 448.
Every animal is resized to this crop, so a
patch is a fixed fraction of body size
whatever the rig.
--n-frames INTEGER RANGE Frames to label across the chosen
recordings, shared out by each recording's
tracked rows, one draw per equal time slice.
[x>=1; required]
--val-split FLOAT Fraction of labeled frames held out for
validation, per recording. [default: 0.15]
--score-cutoff FLOAT A point placed with a score below this is
taught as not visible (v = 0); the box is
still taught. Omit for the teacher method's
own default cut-off, recorded on the
dataset.
--exclude-audit-s FLOAT Never use an audit frame, nor any frame
within this many seconds of one, so the
labels that score a method are never what
builds it. [default: 1.0]
--every-n-frames INTEGER RANGE Consider only every n-th teacher row as a
candidate, so neighbouring frames of one
posture are not drawn together. [default:
1; x>=1]
--base-model TEXT Pretrained YOLO-pose weights the trainer
fine-tunes (a -pose checkpoint). [default:
yolo11s-pose.pt]
--trainer TEXT Trainer id. [default: ultralytics_yolo]
--epochs INTEGER Maximum training epochs.
--batch-size INTEGER Images per training batch.
--imgsz INTEGER Training image size (square).
--patience INTEGER Early stopping: stop if no improvement for
this many epochs (0 disables).
--train-backend [cpu|cuda|mps] Training backend (default: CUDA if
available, else CPU).
--train-device INTEGER Training CUDA device index (repeatable).
--help Show this message and exit.
detail keypoints examples¶
Example sets: a skeleton plus a few frames with its points marked on them, the input a patch-matching keypoint method learns from.
One set serves every recording. Create one on a library skeleton (detail skeleton
list), another set's skeleton or a skeleton file; sample frames here, then mark them in
the GUI's labeling screen; or prepare the YAML by hand and import it.
Usage:
detail keypoints examples [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail keypoints examples add-frame¶
Copy one chosen frame into SET_ID (the track must have a subject on it).
Usage:
detail keypoints examples add-frame [OPTIONS] SET_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id). [required]
--tracking-run TEXT [required]
--part TEXT Video part id, e.g. part_001. [required]
--frame INTEGER Frame within the part. [required]
--track INTEGER Track id. [required]
--help Show this message and exit.
detail keypoints examples create¶
Create an empty example set holding a copy of a skeleton.
Usage:
detail keypoints examples create [OPTIONS] NAME
Options:
--experiment DIRECTORY Experiment directory. [required]
--skeleton TEXT A library or preset skeleton id (see `detail
skeleton list`), another example set's id (its
skeleton is copied), or a skeleton YAML file.
[required]
--help Show this message and exit.
detail keypoints examples delete¶
Delete a set no keypoint run lists.
Usage:
detail keypoints examples delete [OPTIONS] SET_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail keypoints examples duplicate¶
A new, empty set with a copy of SET_ID's skeleton (how a used set's points change).
Usage:
detail keypoints examples duplicate [OPTIONS] SET_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT The copy's name.
--help Show this message and exit.
detail keypoints examples edit¶
Rename SET_ID, or change its skeleton until its first mark (after that, make a new set for another skeleton).
Usage:
detail keypoints examples edit [OPTIONS] SET_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT The set's new name.
--skeleton TEXT Change the set's skeleton (a library or preset id,
or a skeleton YAML file); refused once any frame has
a mark.
--help Show this message and exit.
detail keypoints examples export¶
Write SET_ID to a folder another experiment can examples import.
Usage:
detail keypoints examples export [OPTIONS] SET_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--out DIRECTORY An empty folder to write examples.yaml and its frame
images into. [required]
--help Show this message and exit.
detail keypoints examples import¶
Import a prepared set (an examples.yaml with its frame images beside it) or a bare skeleton file (names, edges, pairs), which becomes an empty set.
Usage:
detail keypoints examples import [OPTIONS] PATH
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail keypoints examples list¶
List the experiment's example sets.
Usage:
detail keypoints examples list [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--purpose [example|all] Which sets: the ones a method learns from, or every
set in the experiment (which includes any audit set
an earlier version made). [default: example]
--help Show this message and exit.
detail keypoints examples sample¶
Copy tracked frames from the chosen recordings into SET_ID, unmarked.
Usage:
detail keypoints examples sample [OPTIONS] SET_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) to sample from;
repeatable. [required]
--tracking-run TEXT The tracking run to read in each recording;
default: its only complete one.
-n, --frames INTEGER Frames. [default: 5]
--strategy [varied|spread] varied: postures that differ, typical ones
first. spread: one per time slice. [default:
varied]
--typical INTEGER varied only: typical frames an empty set opens
with. [default: 5]
--from-recordings INTEGER varied only: read at most this many recordings,
spread through the set; 0 = all. [default: 20]
--track INTEGER Only these track ids.
--seed INTEGER [default: 0]
--device TEXT varied only: device for the DINOv3 pass (cpu,
cuda, mps); default: the best present.
--help Show this message and exit.
detail keypoints examples show¶
Show a set's skeleton, frames and marks.
Usage:
detail keypoints examples show [OPTIONS] SET_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail keypoints export¶
Write a keypoint run's points for other tools (§26): DETAIL's long CSV
(keypoints), DeepLabCut CSV + H5 (keypoints_dlc), the SLEAP analysis HDF5
(keypoints_sleap), NWB with ndx-pose (keypoints_nwb), or the footage with the
points drawn on (keypoints_video). One file per video part, named by recording; DLC
and SLEAP files carry no time, so timestamps.csv goes beside them; every export ships
params.csv and coverage.csv. The same targets are on export run and the GUI's
Export control; this command adds the keypoint options.
Usage:
detail keypoints export [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--run TEXT The experiment run (run_NNN) of a keypoint
track or keypoint detect module. [required]
--target [keypoints|keypoints_dlc|keypoints_sleap|keypoints_nwb|keypoints_video]
What to write (repeatable; several go into
one folder). See `export list`. [default:
keypoints]
--out DIRECTORY Where to put the export folder. The folder
itself is named for you. [required]
--source [track|detect] On a track run: the tracked points (the
default) or the detect run's poses before
tracking, for a before/after comparison. A
detect run always exports its own,
unassigned: no track, each pose numbered
within its frame.
--cutoff FLOAT The display cut-off: a point scoring under
it is written not visible (its coordinates
kept). Default: the detect method's own cut-
off.
--blank-below-cutoff / --keep-below-cutoff
Write a point under the cut-off as missing
(NaN) in every format, rather than keeping
its coordinates and marking it not visible.
--overlay / --points-only keypoints_video: also draw the tracking
run's masks and boxes under the points.
--help Show this message and exit.
detail keypoints test¶
Test a teacher before a distill: place points on about a dozen frames drawn the way the distill would, and check the method against the example set's own clicks, each example frame scored by the others (errors in pixels and % of body size). Writes nothing; the GUI's Test cut-off… shows the same.
Usage:
detail keypoints test [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--teacher [patch|detect] What labels the frames, both unsmoothed:
`patch`, the patch method itself run on the
sampled frames (with --example-set and the
tracking runs), or `detect`, finished
keypoint detect runs' stored poses, each
given to a tracked animal. [required]
--recording TEXT Recording name (or id) to label from
(repeatable): its only complete tracking run
for --teacher patch, its only complete
keypoint detect run for --teacher detect.
--detect-run RECORDING:kd_NN --teacher detect: a named keypoint detect
run, for a recording with several
(repeatable; alternative to --recording).
--tracking-run RECORDING:track_NN
A named tracking run, for a recording with
several (repeatable). --teacher patch: the
run whose animals the method labels
(alternative to --recording). --teacher
detect: the run the detect run's poses are
given to; left out, the one complete
tracking run on the detect run's detection
run.
--example-set TEXT --teacher patch: the example set (ex_NN) the
patch method learns from.
--model TEXT --teacher patch: the patch method.
[default: dinov3_match]
--model-variant TEXT --teacher patch: the method's size (default:
its own default).
--label-backend [cpu|cuda|mps] --teacher patch: where the method runs
(default: CUDA if available).
--label-device INTEGER --teacher patch: CUDA device index for
labelling (repeatable).
--decode [skeleton|per_point] --teacher patch: How a frame's candidates
become points. 'skeleton' chooses jointly:
the midline as a tree with edge lengths
learned from the examples, left/right pairs
as two distinct places (the default when the
skeleton has edges). 'per_point' takes each
point's best candidate on its own.
--side-rule [auto|midline|hard|soft|off]
--teacher patch: How a left/right pair is
kept apart under the skeleton decode. 'auto'
decides per pair from the example clicks
(the default when the skeleton has a pair):
'midline' puts each member on its own side
of the midline (right from above), 'hard'
keeps their relative order across the body
(right from the side). 'soft' only penalises
a swap; 'off' ignores sides (the default
without pairs).
--crop-px INTEGER --teacher patch: Side of the square crop
around each detection's box the method
matches in, in pixels; a multiple of the
backbone's patch size (16). Omit for 448.
Every animal is resized to this crop, so a
patch is a fixed fraction of body size
whatever the rig.
--exclude-audit-s FLOAT Never use an audit frame, nor any frame
within this many seconds of one, so the
labels that score a method are never what
builds it. [default: 1.0]
--every-n-frames INTEGER RANGE Consider only every n-th teacher row as a
candidate, so neighbouring frames of one
posture are not drawn together. [default:
1; x>=1]
--n INTEGER RANGE Frames to test on, drawn the way the distill
would draw them. [default: 12; x>=1]
--seed INTEGER Another sample of the same kind. [default:
0]
--cutoff FLOAT Report at this score cut-off (default: the
method's own, or none).
--help Show this message and exit.
detail keypoints track¶
Give a keypoint detect run's poses to a tracking run's subjects by mask, then settle
each subject's points over time (keypoint track, §26); writes an experiment run
(run_NNN). Point at the detect runs with either --detect kd_NN (that id must be
complete in every selected recording) or --detect-ref RECORDING:kd_NN. Name the
tracking run with --tracking track_NN or --tracking-ref RECORDING:track_NN;
without either, each recording uses the one complete tracking run on the detect run's
detection run, and several are refused, named. The method defaults to the detect run's
method's own (dinov3_match: temporal_decode); every setting left out takes the method's
default and is recorded on the run. CPU only. The same command is process
keypoint_track.
Usage:
detail keypoints track [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) to include
(repeatable; at least one). [required]
--detect TEXT Keypoint detect run id, complete in every
selected recording.
--detect-ref TEXT RECORDING:kd_NN — derive the detect kind
from this run and resolve each recording's
own match (alternative to --detect, for
recordings with divergent ids).
--tracking TEXT Tracking run whose subjects the poses are
given to (e.g. track_01); it must be on the
detect run's detection run. Omit when
exactly one such run is complete; with
several, name one.
--tracking-ref TEXT RECORDING:track_NN — derive the tracking
kind from this run and resolve each
recording's own match (alternative to
--tracking, for recordings with divergent
ids).
--match-min-inside FLOAT RANGE The least share of a pose's placed points
that must fall inside a subject's (grown)
mask for the pose to be given to that
subject. A policy default, not a measured
one. [default: 0.5; 0.0<x<=1.0]
--match-mask-grow FLOAT RANGE How far each subject's mask is grown before
the match, as a fraction of its body scale,
so a nose or tail tip the segmentation
clipped still counts as inside. A policy
default, not a measured one. [default:
0.05; x>=0.0]
--method [despike_smooth|temporal_decode]
The track method: temporal_decode (a path
through the stored candidates, then the
filters) or despike_smooth (the filters on
the best point). Omit for the detect run's
method's own default.
--method-param NAME=VALUE A setting of the chosen --method, e.g.
--method-param smooth_window_s=0.2 or
--method-param despike=false; names and
types come from the method's parameter page
(`detail docs`). Needs --method.
--help Show this message and exit.
detail locations¶
Location export — per-frame, per-track spatial features vs ROIs/POIs.
Usage:
detail locations [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail locations export¶
Write per-frame, per-track spatial features (position, body shape, and position relative to the recording's ROIs/POIs) for a completed tracking run, keyed by t_ns.
Usage:
detail locations export [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--tracking TEXT Completed tracking run id (e.g. track_01).
[required]
--out DIRECTORY Directory to create the export folder in; each
export makes a new one holding
tracks/roi_relations/point_relations CSVs +
locations.yaml. [required]
--keypoints TEXT A completed keypoint track run to export beside the
tracks (keypoints.csv: where each skeleton point
was, on the rows tracks.csv has), common to every
selected recording (e.g. kt_01). Its poses must have
been assigned to the tracking run this export reads.
Unset: no keypoints.
--sample-fps FLOAT Rows to write per second for each subject. Leave
unset to write every tracked frame. When set, the
tracked frame nearest each tick of a clock at this
rate is kept and nothing is interpolated, so a
stretch with no tracking has no rows. A few per
second is enough for distance, speed and body shape,
and is many times faster than every frame.
--help Show this message and exit.
detail locations plot¶
Draw a location-export run: the animal's path, where it spent its time, its speed, or its body's size and shape — per recording, or by a Recording Information column with --group-by.
Usage:
detail locations plot [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--run TEXT Completed location-export analysis run (e.g.
an_03). [required]
--recording TEXT Recording name (or id) to plot (repeatable).
Default: every completed recording of the
run.
--out FILE Output path without extension; one file per
--format is written beside it. [required]
--format [png|svg|pdf|html] png / svg / pdf picture, or html: one self-
contained interactive page you can hover,
zoom and (3-D) turn (repeatable). [default:
png]
--theme [light|dark] Chart surface. [default: light]
--kind [trace|heatmap|speed|trace3d|body|body_hist]
trace: the 2-D path. heatmap: where the
animal spent its time. speed: speed over
time. trace3d: the path against time, in
3-D. body: a measure of the body's shape or
size over time. body_hist: how often the
body measured each value. [default: trace]
--source TEXT The animal's position: 'body' (the centre of
its body, which the export measures as the
whole mask, so the same point as 'mask'),
'mask' (the centre of the whole mask),
'bbox' (the bounding box's centre), or a
keypoint's name (e.g. 'nose') when the
export read a keypoint track run. [default:
body]
--point TEXT Several keypoints to draw on a path plot,
each in its own colour. Unset: the one
Position.
--body-measure [length|width|area|elongation|mask_area]
What a body plot shows: the body's length or
width (along and across its long axis), its
area, its elongation (length ÷ width), or
the area of the whole mask. [default:
length]
--units [mm|px|norm] Auto: mm when every plotted recording is
calibrated, otherwise pixels. Plots by group
pool positions in normalized coordinates
(0-1 of the frame), the only frame shared
across videos.
--color-by [time|speed] What colours a path: elapsed time, or speed
on the smoothed path. [default: time]
--group-by TEXT A Recording Information column to group
recordings by (one panel per group, each
animal counting once). Unset: one panel per
recording.
--posture-every-s FLOAT RANGE On a 2-D path, draw the body's outline every
this many seconds: an ellipse as long and as
wide as the body, along its long axis.
Unset: none. [0.0<x<=3600.0]
--bins INTEGER RANGE Heat-map cells along the frame's longer
side. [default: 40; 5<=x<=200]
--hist-bins INTEGER RANGE Bins of a body histogram, from the smallest
value plotted to the largest. [default: 40;
5<=x<=200]
--time-bin-s FLOAT RANGE Width of one time bin on a speed or body
plot over time, in seconds. [default: 1.0;
0.04<=x<=600.0]
--smooth-s FLOAT RANGE Seconds the position is averaged over before
speed is measured, as a comparison measures
it. Without it, frame-to-frame jitter reads
as movement. [default: 1.0; 0.0<x<=60.0]
--jump-speed FLOAT RANGE A raw step faster than this many of the
animal's own body lengths per second is a
tracking jump, not movement: the path is
broken there, drawn and measured, rather
than joined. As a comparison breaks it.
[default: 7.5; 0.0<x<=1000.0]
--speed-clip-pct FLOAT RANGE Top of the speed colour scale, as a
percentile of every plotted speed, so one
fast outlier does not wash out the rest.
[default: 95.0; 50.0<=x<=100.0]
--elev FLOAT RANGE 3-D camera elevation in degrees. Every 3-D
panel shares it. [default: 22.0;
-90.0<=x<=90.0]
--azim FLOAT RANGE 3-D camera rotation in degrees. Every 3-D
panel shares it. [default: -60.0;
-180.0<=x<=180.0]
--max-points INTEGER RANGE Most samples drawn per path, evenly spaced.
Speeds and histograms use every sample; this
only thins the drawing. [default: 20000;
500<=x<=1000000]
--help Show this message and exit.
detail measures¶
Turn a behavior result into numbers: counts, total time, rates, durations.
Usage:
detail measures [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail measures export¶
Measure one analysis run's behavior output and write the tables.
Any module that produces labeled behavior in time can be measured — behavior scan, temporal clustering — because they all write the same artifact.
Usage:
detail measures export [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--run TEXT Analysis run id (e.g. an_01). [required]
--out DIRECTORY Directory to create the export folder in;
each export makes a new one holding
measures.csv, frames.csv and measures.yaml.
[required]
--measure TEXT Measure to compute (repeatable; default: all
of them, see `measures list`).
--windows [whole|absolute|normalized|sliding]
Whole recording, fixed-duration tiles, equal
fractions, or a sliding window. [default:
whole]
--every FLOAT For kind=absolute: tile width in seconds.
[default: 600.0]
--parts INTEGER For kind=normalized: how many equal
fractions of each recording. [default: 3]
--length FLOAT For kind=sliding: window length in seconds.
[default: 300.0]
--step FLOAT For kind=sliding: how far the window
advances each step. [default: 60.0]
--help Show this message and exit.
detail measures list¶
Every measure, with the unit its value carries and the window rule it follows.
Usage:
detail measures list [OPTIONS]
Options:
--help Show this message and exit.
detail model¶
Model readiness and install (§5).
Usage:
detail model [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail model check¶
Print readiness reason + action URL for a model.
Usage:
detail model check [OPTIONS] MODEL_ID
Options:
--variant TEXT Model size/variant to check (default: the model's
default variant). Each variant is a separate
download.
--experiment DIRECTORY Accepted for older scripts and ignored: models are
machine-global, so no experiment is needed.
--help Show this message and exit.
detail model export¶
Export one of your models to a .zip (weights + metadata + preview) to share it.
Usage:
detail model export [OPTIONS] MODEL_ID DEST
Options:
--help Show this message and exit.
detail model import¶
Import a checkpoint into the machine-global catalog (usable in any experiment). A detection checkpoint becomes a detector, its classes read from the checkpoint; a pose checkpoint becomes a keypoint model and needs --skeleton.
Usage:
detail model import [OPTIONS] WEIGHTS
Options:
--family TEXT Model family. Leave it out: the checkpoint's task
decides (a pose checkpoint imports as yolo_pose); when
given it must agree.
--skeleton TEXT The skeleton a pose (keypoint) checkpoint's points
follow: a preset, a library id (sk_NN) or a skeleton
YAML. Required for a pose checkpoint, refused for a
detection one. It must have the model's number of
points, and left/right pairs that match the model's
flip_idx; a pair named the wrong way round cannot be
caught.
--name TEXT Name for the model (default: the weights filename).
--made-by TEXT Who made the model (a plain name).
--description TEXT What the model is for.
--notes TEXT Optional free-text notes.
--preview FILE An image to store as the model's preview.
--help Show this message and exit.
detail model install¶
Download a model's weights into the global cache; idempotent.
A run gates on the exact variant it is configured with, so install the size you
plan to run — --variant convnext_tiny is not covered by installing the default.
Usage:
detail model install [OPTIONS] MODEL_ID
Options:
--variant TEXT Model size/variant to download (default: the model's
default variant). Each variant is a separate
download — installing one does not install the
others.
--experiment DIRECTORY Accepted for older scripts and ignored: the weights
cache is machine-global, so no experiment is needed.
--help Show this message and exit.
detail model list¶
List every machine-global model — built-in and imported — with install status.
Answers "what can I run right now?" with no network calls: a run will not
download weights, so anything marked not installed needs model install <id>
first. Use model check <id> to find out why one cannot be installed.
One line per installable unit — a varianted model lists each size separately,
because each is its own download and a run gates on the size it was configured
with. Install one with model install <id> --variant <variant>.
Usage:
detail model list [OPTIONS]
Options:
--help Show this message and exit.
detail model remove¶
Remove a machine-global imported model, or a folder an import stopped part-way by an earlier version left in the catalog.
Usage:
detail model remove [OPTIONS] MODEL_ID
Options:
--help Show this message and exit.
detail model restore¶
Restore a model exported with model export (a .zip) into the catalog.
Usage:
detail model restore [OPTIONS] ARCHIVE
Options:
--help Show this message and exit.
detail model set-meta¶
Edit one of your models' metadata (made-by / description / notes / preview).
Usage:
detail model set-meta [OPTIONS] MODEL_ID
Options:
--made-by TEXT Who made the model.
--description TEXT What the model is for.
--notes TEXT Optional free-text notes.
--preview FILE An image to set as the model's preview.
--help Show this message and exit.
detail model show¶
Show one of your models' metadata + provenance (the model detail, as text).
Usage:
detail model show [OPTIONS] MODEL_ID
Options:
--help Show this message and exit.
detail modules¶
List the registered processing modules and their dependency chain (§6.5).
Usage:
detail modules [OPTIONS]
Options:
--help Show this message and exit.
detail notes¶
Your own notes on an entry — the Notes box on every page of the GUI (§15).
KIND is what the note is on, and ENTRY_ID which one (experiment takes no id). Notes are
plain text kept beside the entry, as notes.md, and travel with it into exports.
Usage:
detail notes [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail notes set¶
Replace the notes on one entry. Pass exactly one of --text, --file or --clear.
Usage:
detail notes set [OPTIONS] {experiment|recording|run|analysis_run|dataset|mode
l|distill|export_run|comparison} [ENTRY_ID]
Options:
--experiment DIRECTORY Experiment directory. [required]
--text TEXT The new notes, replacing what was there.
--file FILE Read the new notes from this file (`-` for standard
input).
--clear Remove the notes.
--help Show this message and exit.
detail notes show¶
Print the notes on one entry.
Usage:
detail notes show [OPTIONS] {experiment|recording|run|analysis_run|dataset|mod
el|distill|export_run|comparison} [ENTRY_ID]
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail process¶
Experiment-level processing runs (§15) — run a stage across one or more
recordings, recorded as run_NNN (the source a dataset is built from).
Usage:
detail process [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail process attach¶
Reattach to a processing run — stream a live one's progress (it keeps running
with the app/CLI closed) or print a finished one's status. Ctrl-C detaches; it
does not cancel the run (use process cancel for that).
Usage:
detail process attach [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail process cancel¶
Cancel a running processing run — stops its coordinator and in-flight recordings.
Recordings already finished keep their results, and recordings not yet reached are
listed as cancelled; process retry picks up the rest.
Usage:
detail process cancel [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail process detect¶
Place keypoints on the animals a detection run found in the selected recordings
(keypoint detect, §26); writes an experiment run (run_NNN). Every pose is stored per frame
with no subject; keypoints track gives each one to a tracked animal. Point at the
detections with either --detection det_NN (that id must be complete in every selected
recording) or --detection-ref RECORDING:det_NN. A method that learns from examples
(dinov3_match) needs --example-set; a setting left out is resolved against the set's
skeleton and recorded on the run. The same command is process keypoint_detect.
Usage:
detail process detect [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) to include
(repeatable; at least one). [required]
--detection TEXT Detection run id, complete in every selected
recording. Detection run to place keypoints
on (e.g. det_01). A method that works per
detection crops each of its detections (and
reads their masks if it uses them); a whole-
frame method uses its frames. Keypoints are
stored per frame with no subject: keypoint
track gives each pose to a tracked animal.
--detection-ref TEXT RECORDING:det_NN — derive the detection kind
from this run and resolve each recording's
own match (alternative to --detection, for
recordings with divergent ids).
--model TEXT The keypoint method, by registered id
(dinov3_match). No default: which method
fits is a fact about the animal and the
camera, and a default is where a wrong one
hides. [required]
--variant TEXT The method's size variant; omit for its
default (dinov3_match: vit_large). For a
method on a shared backbone this is the
backbone's size.
--example-set TEXT The example set the method learns from
(ex_NN): the marked frames of the skeleton
to place. Required by a method that needs
examples; refused by one that does not.
--min-pose-confidence FLOAT RANGE
Keep a pose only if the method's confidence
in the whole animal is at least this. Only
for a method that reports one (a trained
pose model); omit for 0.25. Lower keeps more
faint or partly hidden animals and more
false ones. Poses below it are not stored,
so changing it means running again.
[0.0<=x<=1.0]
--decode [skeleton|per_point] How a frame's candidates become points.
'skeleton' chooses jointly: the midline as a
tree with edge lengths learned from the
examples, left/right pairs as two distinct
places (the default when the skeleton has
edges). 'per_point' takes each point's best
candidate on its own.
--side-rule [auto|midline|hard|soft|off]
How a left/right pair is kept apart under
the skeleton decode. 'auto' decides per pair
from the example clicks (the default when
the skeleton has a pair): 'midline' puts
each member on its own side of the midline
(right from above), 'hard' keeps their
relative order across the body (right from
the side). 'soft' only penalises a swap;
'off' ignores sides (the default without
pairs).
--crop-px INTEGER Side of the square crop around each
detection's box the method matches in, in
pixels; a multiple of the backbone's patch
size (16). Omit for 448. Every animal is
resized to this crop, so a patch is a fixed
fraction of body size whatever the rig.
--every-n-frames INTEGER Use every Nth frame of the video. Omit to
use every frame the detection run holds.
Counted in source frames, so it must be a
multiple of what detection used.
--batch-size INTEGER Frames per forward pass. Lower it if the
method runs out of GPU memory; it never
changes a result. [default: 16]
--backend [cpu|cuda|mps] Compute backend. [default: cpu]
--device INTEGER Device index (repeatable for multi-GPU; cuda
only). Left out: GPU 0 alone.
--help Show this message and exit.
detail process detection¶
Run detection across the selected recordings; writes an experiment run (run_NNN).
Usage:
detail process detection [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) to include
(repeatable; at least one). [required]
--model TEXT Model id: built-in (sam3), experiment-
trained (model_NNN), or imported (see `model
list`). Source is resolved automatically.
[required]
--variant TEXT Model size/variant, if the model has size
options; omit for the default.
--class TEXT Class label for a pretrained model's
detections; omit for a local model.
--prompt TEXT Text prompt for a pretrained (open-set)
model; omit for a local model.
--batch-size INTEGER RANGE Frames per GPU forward pass. Omit to use the
model's default (4 for batch-capable YOLO
models, 1 for SAM3); bounded by GPU memory.
[x>=1]
--conf FLOAT Minimum detection confidence to keep (0–1).
[default: 0.5]
--every-n-frames INTEGER RANGE Use every Nth frame of the video: 1 detects
every frame, 4 detects frames 0, 4, 8, …
Cost falls roughly in proportion. Tracking
and embedding count the same source frames,
so they can only go coarser by a multiple of
this. [default: 1; x>=1]
--backend [cpu|cuda|mps] Compute backend. [default: cpu]
--device INTEGER Device index (repeatable for multi-GPU; cuda
only). Left out: GPU 0 alone.
--help Show this message and exit.
detail process embedding¶
Embed across the selected recordings; writes an experiment run (run_NNN).
Point at the tracks with either --tracking track_NN (that id must be complete
in every selected recording) or --tracking-ref RECORDING:track_NN (derive the
tracking kind from one run and resolve each recording's own match). --resize is
omitted by default, so the renderer emits the embedding model's own input size.
--align rotate|mirror turns each animal to face right, reading the heading
from --keypoint-run kt_NN (or --keypoint-ref RECORDING:kt_NN) through the saved
heading definition --heading NAME (§14).
Usage:
detail process embedding [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) to include
(repeatable; at least one). [required]
--tracking TEXT Tracking run id, complete in every selected
recording.
--tracking-ref TEXT RECORDING:track_NN — derive the tracking
kind from this run and resolve each
recording's own match (alternative to
--tracking, for recordings with divergent
ids).
--tracks TEXT Comma-separated track ids to embed. Mutually
exclusive with --all-tracks.
--all-tracks Embed every track in each recording
(mutually exclusive with --tracks).
--model TEXT Embedding model to run (a registered model
id). The default is DINOv3 ViT (dinov3_vit).
[default: dinov3_vit]
--variant TEXT Model size/variant (e.g. vit_base); omit for
the model's default size (ViT-L for DINOv3
ViT).
--input-size INTEGER Model input resolution (px), the square the
model actually sees. Sets the backbone's
image-processor size and the renderer's
emitted size together. Omit for the model's
own input size (e.g. 224 for DINOv3). Not
every model is resizable.
--readout TEXT Feature read-out: how the backbone output
becomes one vector (model-dependent, e.g.
pooler / cls_patch / gap / gmp / gap_gmp).
Omit for the model's default.
--resize INTEGER Final square size the renderer emits (px),
independent of the model input size. Omit to
follow input_size or the model's own input
size. The renderer then hands the model
exactly that, instead of a larger canvas it
re-downscales every frame.
--constructor [silhouette_centered|masked_color_centered|masked_color_centered_contrast|full_frame]
Named input-image constructor. The centered
ones crop each mask and center it at true
scale in a shared canvas. Ignored when a
renderer_spec is given directly.
--canvas-scope [per_recording|shared]
How the centered constructors size their
shared canvas across a multi-recording run:
per_recording sizes it to each recording's
own largest mask (normalizes away body-size
differences between subjects); shared sizes
it once to the largest mask over the whole
selection (keeps true relative size, but a
smaller subject then fills less of the model
input). No effect on a single recording.
[default: per_recording]
--batch-size INTEGER RANGE Images per forward pass. [default: 32;
1<=x<=1024]
--every-n-frames INTEGER Use every Nth frame of the video. Omit to
embed every frame the tracking run produced.
Counted in source frames, so it must be a
multiple of what tracking used: after
tracking at 2, 4 embeds half of what it
produced.
--align [none|rotate|mirror] Egocentric alignment: make every animal face
the same way before embedding. 'rotate'
(overhead camera) turns each image so the
head points right; 'mirror' (side camera)
flips an animal facing left so it faces
right; 'none' embeds the image as cropped.
Needs a keypoint track run and a heading
definition. A frame with no heading within
the gap is not embedded, so an aligned run
never mixes turned and unturned pictures.
[default: none]
--keypoint-run TEXT The keypoint track run (kt_NN) the heading
is read from; it must come from this
embedding's own tracking run.
--heading TEXT A saved heading definition: the skeleton
points whose mean is the front and the
points whose mean is the back. The heading
is the direction from back to front, in
pixels; the resolved definition is copied
onto the run.
--max-gap-s FLOAT RANGE A frame without its own heading takes one
interpolated across the gap to the nearest
defined frames, when that gap is no longer
than this, in seconds; in a longer gap the
frame is not embedded and is counted as lost
to heading. [0.0<=x<=30.0]
--mirror-hold-s FLOAT RANGE mirror only: the animal must face the new
way for this long, in seconds, before the
image flips, so a heading hovering near
straight-on does not flicker.
[0.0<=x<=30.0]
--facing-camera-ratio FLOAT RANGE
A heading axis shorter than this fraction of
the track's typical axis length (its 95th
percentile over the run) is undefined: an
animal facing the camera foreshortens its
axis to noise, which is where headings flip.
[0.0<=x<=1.0]
--keypoint-ref TEXT RECORDING:kt_NN — derive the keypoint track
kind from this run and resolve each
recording's own match (alternative to
--keypoint-run, for divergent ids).
--backend [cpu|cuda|mps] Compute backend. [default: cpu]
--device INTEGER Device index (repeatable for multi-GPU; cuda
only). Left out: GPU 0 alone.
--help Show this message and exit.
detail process list¶
List the experiment's processing runs (run_NNN).
Usage:
detail process list [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail process retry¶
Re-run a finished run's incomplete recordings, into the same run record.
Every recording that isn't complete — failed, cancelled, or never launched — is run again under a fresh per-recording id; the completed ones are left alone. The run rolls up to complete once all of them are. Refuses if any incomplete recording no longer validates, naming each one.
Usage:
detail process retry [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail process status¶
Show one processing run: module, status, and per-recording run ids.
Usage:
detail process status [OPTIONS] RUN_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail process track¶
Give a keypoint detect run's poses to a tracking run's subjects by mask, then settle
each subject's points over time (keypoint track, §26); writes an experiment run
(run_NNN). Point at the detect runs with either --detect kd_NN (that id must be
complete in every selected recording) or --detect-ref RECORDING:kd_NN. Name the
tracking run with --tracking track_NN or --tracking-ref RECORDING:track_NN;
without either, each recording uses the one complete tracking run on the detect run's
detection run, and several are refused, named. The method defaults to the detect run's
method's own (dinov3_match: temporal_decode); every setting left out takes the method's
default and is recorded on the run. CPU only. The same command is process
keypoint_track.
Usage:
detail process track [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) to include
(repeatable; at least one). [required]
--detect TEXT Keypoint detect run id, complete in every
selected recording.
--detect-ref TEXT RECORDING:kd_NN — derive the detect kind
from this run and resolve each recording's
own match (alternative to --detect, for
recordings with divergent ids).
--tracking TEXT Tracking run whose subjects the poses are
given to (e.g. track_01); it must be on the
detect run's detection run. Omit when
exactly one such run is complete; with
several, name one.
--tracking-ref TEXT RECORDING:track_NN — derive the tracking
kind from this run and resolve each
recording's own match (alternative to
--tracking, for recordings with divergent
ids).
--match-min-inside FLOAT RANGE The least share of a pose's placed points
that must fall inside a subject's (grown)
mask for the pose to be given to that
subject. A policy default, not a measured
one. [default: 0.5; 0.0<x<=1.0]
--match-mask-grow FLOAT RANGE How far each subject's mask is grown before
the match, as a fraction of its body scale,
so a nose or tail tip the segmentation
clipped still counts as inside. A policy
default, not a measured one. [default:
0.05; x>=0.0]
--method [despike_smooth|temporal_decode]
The track method: temporal_decode (a path
through the stored candidates, then the
filters) or despike_smooth (the filters on
the best point). Omit for the detect run's
method's own default.
--method-param NAME=VALUE A setting of the chosen --method, e.g.
--method-param smooth_window_s=0.2 or
--method-param despike=false; names and
types come from the method's parameter page
(`detail docs`). Needs --method.
--help Show this message and exit.
detail process tracking¶
Run tracking across the selected recordings; writes an experiment run (run_NNN).
Point at the detections with either --detection det_NN (that id must be
complete in every selected recording) or --detection-ref RECORDING:det_NN (derive
the detection kind from one run and resolve each recording's own match).
Usage:
detail process tracking [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) to include
(repeatable; at least one). [required]
--detection TEXT Detection run to track: its per-frame
detections are linked into tracks (e.g.
det_01).
--tracker TEXT Tracking algorithm to run, by registered
tracker id. The default keeps one subject
per frame: it takes the highest-confidence
detection and attaches overlapping fragments
of the same animal to it, which is the shape
of every single-animal recording. Recordings
with more than one subject are not supported
yet. [default: anchor_tracker]
--iou-threshold FLOAT Box-overlap threshold. What it gates depends
on the tracker: how much a fragment must
overlap the subject to be merged into it.
--max-missed INTEGER Max missed frames before a track dies.
--conf-threshold FLOAT Confidence filter applied by the tracker.
--num-subjects INTEGER anchor_tracker: subjects to keep per frame.
--secondary-conf FLOAT anchor_tracker: min confidence for
overlapping secondary detections.
--max-secondary INTEGER anchor_tracker: max secondary detections
kept per anchor.
--require-contiguous / --no-require-contiguous
anchor_tracker: reject masks with more than
one connected component.
--hyperparam KEY=VALUE Set any hyperparam of the selected tracker
(repeatable), e.g. --hyperparam
max_secondary=3. Coerced to the type the
tracker declares; see the tracker's schema.
For knobs without a dedicated flag above.
--every-n-frames INTEGER Use every Nth frame of the video. Omit to
link every frame detection produced. Counted
in source frames, so it must be a multiple
of what detection used. Going coarser here
also thins what embedding can read, and
makes linking harder: the subject moves
further between the frames being compared.
--arena TEXT Field of view to track inside, by **name**
(recommended) or by this recording's own
arena id. A name is the same field of view
on every recording; an id is minted per
recording, so one id names a different
polygon on the recording next to it.
--detection-ref TEXT RECORDING:det_NN — derive the detection kind
from this run and resolve each recording's
own match (alternative to --detection, for
recordings with divergent ids).
--help Show this message and exit.
detail recording¶
Recording lifecycle, video ingestion, and inspection.
Usage:
detail recording [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail recording add-stream¶
Import a time-series stream into a recording (Section 3).
A MED-PC file holding several sessions, or a BORIS export holding several observations or subjects, is refused until the --medpc-* / --boris-* flags pick one; the refusal lists what the file holds. They are never merged.
Usage:
detail recording add-stream [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the
experiment. [required]
--name TEXT Stream name (e.g. medpc). [required]
--importer TEXT Importer id (e.g. medpc). Omit when --preset
names one.
--data FILE Primary stream data file to import.
[required]
--program FILE MED-PC .MPC program (the 'program' aux input
for the medpc importer).
--covered-behaviors TEXT Behavior stream only: comma-separated
scored-behavior vocabulary (declares
behaviors scored but never observed).
Defaults to labels present.
--origin [ground_truth|predicted]
Behavior stream only: whether the labels are
a human's scoring (ground_truth) or a
method's output (predicted). Defaults to the
file's own origin column, else ground_truth.
A predicted stream is never read as ground
truth, so a method cannot be scored against
its own labels.
--time-column TEXT CSV importers: the header name of the column
carrying time. Omit to auto-detect a column
named seconds, frame or t_ns.
--time-is [auto|frame|seconds|t_ns|utc]
CSV importers: what the time column holds.
'auto' reads it from the column's name.
[default: auto]
--channel COLUMN[=NAME] CSV importers: bring in this column as a
channel, optionally renamed. Repeat for
several. Omit for every column except the
time column. One CSV makes one stream
carrying the channels named here.
--medpc-subject TEXT MED-PC, a file holding several sessions:
Import the session whose 'Subject:' header
is this. Leave unset when the file holds one
session.
--medpc-box TEXT MED-PC, a file holding several sessions:
Import the session whose 'Box:' header is
this. Combine with subject when one subject
ran in several boxes.
--medpc-session INTEGER RANGE MED-PC, a file holding several sessions:
Import the session at this position in the
file, counting from 1. For a file where
subject and box do not tell two sessions
apart. [x>=1]
--boris-observation TEXT BORIS: Import the rows whose 'Observation
id' is this. Leave unset when the export
holds one observation.
--boris-subject TEXT BORIS: Import the rows whose 'Subject' is
this. Leave unset when the export scores one
subject. Rows with no subject are selected
by an empty value.
--offset FLOAT Alignment offset in seconds, set at import:
positive if the stream began after the
video. Only for an external-clock stream;
edit later with set-stream-offset. Default
0, or with --preset the preset's own offset.
--preset TEXT Use a saved preset's importer + config
instead of --importer and the mapping flags
(--time-column, --time-is, --channel), which
are refused beside it. See `experiment list-
stream-presets`.
--save-preset TEXT Save this import's importer + mapping under
this name, for reuse on the experiment's
other recordings. Saved only if the import
succeeds; a name already taken is refused
before anything is imported.
--help Show this message and exit.
detail recording add-video¶
Import a video file as the next part of a recording.
The video is copied in at its original rate and resolution; a stage that wants
fewer frames sets --every-n-frames on the run instead. With --reference the
video is referenced in place (not copied); its folder is remembered automatically
(or pass --video-root ALIAS to pin a specific one).
Afterwards the part's display-only preview is built into this machine's preview
cache, with its own bar; --no-preview skips it.
Usage:
detail recording add-video [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--video FILE Video file to import as the next part. [required]
--reference Reference the video in place (don't copy it in). The
recording stores the file's location + a content
fingerprint; the location is remembered
automatically.
--video-root ALIAS Advanced: reference under a specific registered
video root (see `video-root set`) rather than the
auto-remembered folder. Implies --reference.
--no-preview Skip building the display-only preview after the
import (build it later with `cache previews build`).
--help Show this message and exit.
detail recording backfill-kinematics¶
Write per-frame geometry for an embedding run made before it was captured.
Every run from now on records where the subject was on each embedded frame (§14). A run from before that has none, so nothing downstream can say where a behavior happened. This regenerates it from the detection zarr, which still holds every mask and box — no GPU, no model, no video decode. Minutes on a long recording.
Usage:
detail recording backfill-kinematics [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--embedding TEXT Embedding run (emb_NN). [required]
--overwrite Rewrite parts that already have kinematics, instead
of skipping them.
--help Show this message and exit.
detail recording clear-calibration¶
Remove a recording's distance calibration (§10).
Usage:
detail recording clear-calibration [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--help Show this message and exit.
detail recording create¶
Create a new, empty recording named NAME; the tool assigns its id.
Usage:
detail recording create [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT The recording's name: what every command's
--recording and the GUI take. The tool assigns its
id (recording_000, …). [required]
--help Show this message and exit.
detail recording export-spatial¶
Export a recording's spatial setup to a CSV — the field of view, the distance calibration, and the regions/points of interest — to share or import onto another recording. Import it back with import-spatial / import-fov / import-calibration.
Usage:
detail recording export-spatial [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--csv FILE Write the recording's whole spatial setup to this
CSV (round-trippable, §10). [required]
--help Show this message and exit.
detail recording import¶
Bulk-import recordings (video + streams + grouping variables) from a bundle manifest (Section 3). Validates the whole manifest before importing anything.
Usage:
detail recording import [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--bundle DIRECTORY Bundle folder holding a manifest.yaml + the
referenced video/stream files. [required]
--dry-run Validate the manifest and print the report; import
nothing.
--help Show this message and exit.
detail recording import-calibration¶
Carry a distance calibration onto a recording from another recording (--from-recording) or a CSV (--csv).
Never replaces, and refused whole like the field of view: there is one pixel scale, so a recording that already has one keeps it and the command fails saying so. Delete it on this recording first (clear-calibration).
The calibration keeps the resolution it was measured at, so it stays correct on a recording whose video is a different size (§10) — but it is refused onto a video of a different aspect ratio, where one pixels-per-mm cannot be right. Nothing to flatten or leave behind — it carries no frame index.
Usage:
detail recording import-calibration [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--from-recording TEXT Copy the distance calibration from this recording id
in the same experiment.
--csv FILE Import the distance calibration from an exported
spatial CSV.
--help Show this message and exit.
detail recording import-fov¶
Carry a field of view onto a recording from another recording (--from-recording) or a CSV (--csv) — recordings off one rig share it, so it need only be drawn once.
Never replaces, and unlike the regions it is refused whole: a recording that already has a field of view keeps it, and the command fails saying so. Delete it on this recording first — along with any tracking runs holding it, which its region describes. Camera motion does not travel; a keyframed polygon arrives at its frame-0 position.
Usage:
detail recording import-fov [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--from-recording TEXT Copy the field of view from this recording id in the
same experiment.
--csv FILE Import the field of view from an exported spatial
CSV.
--help Show this message and exit.
detail recording import-labels¶
Batch-import behavior ground-truth labels onto existing recordings (Section 3).
Adds each manifest recording's file as a behavior-role stream. Validates the
whole manifest before importing anything; a file that fails to parse is skipped
and reported (the batch continues).
Usage:
detail recording import-labels [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--manifest FILE Labels manifest (schema_version: 1; labels:
{recording_id: file}). [required]
--name TEXT Stream name created on each recording.
[default: behavior]
--importer [behavior_csv|boris]
Behavior-label importer used for every file
in the batch. [default: behavior_csv]
--help Show this message and exit.
detail recording import-spatial¶
Take regions + points of interest onto a recording from another recording (--from-recording) or a CSV (--csv) — the pull twin of experiment propagate-rois / propagate-points, and the same rules.
Never replaces: a name this recording already has is refused and reported by name, and the ones that do not collide still arrive (regions and points are sets, so one collision does not refuse the rest). Camera motion does not travel — a keyframed polygon arrives at its frame-0 position, and the command says which ones. A region with an active frame window is left behind: that window belongs to one recording's timeline.
Usage:
detail recording import-spatial [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--from-recording TEXT Copy ROIs + POIs from this recording id in the same
experiment.
--csv FILE Import ROIs + POIs from an exported CSV.
--help Show this message and exit.
detail recording relink¶
Point a video part at its file: a moved referenced video, or a copied one to put back.
A referenced part is pointed at its moved or renamed file, accepted only if its content
matches what was recorded. For a whole moved library, re-point the root instead (detail
video-root set). If the part's video root is not registered on this machine, relinking
one file registers it, which relinks every recording under that root.
A copied part whose video is not here (an experiment imported without its video) gets the file copied back in, accepted only if its frame times and resolution match the recorded part's exactly. Without --video it uses the file the part was copied from, when that is on this machine. Shows a bar while it checks and copies.
Usage:
detail recording relink [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--part INTEGER 0-based part index to relink. [required]
--video FILE The video file. For a copied part, defaults to the
file it was copied from when that is on this
machine.
--help Show this message and exit.
detail recording set-calibration¶
Set a recording's distance calibration from a pixels-per-mm scalar, measured at its current video resolution (§10). Use the GUI for the two-point pick.
Usage:
detail recording set-calibration [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--pixels-per-mm FLOAT Distance calibration as a pixels-per-mm scalar (the
two-point pick is GUI-only). [required]
--help Show this message and exit.
detail recording set-stream-offset¶
Set a stream's video-alignment offset (Section 3).
video_t_ns = stream_t_ns + offset. The canonical data is never rewritten, so this is a
one-number edit that can be redone at any time. The GUI's Sync to video finds the same
number by scrubbing; this is how a script sets it across many recordings at once.
Refused for a stream already on the video's clock (behavior labels, a frame-indexed CSV): it has no offset, and one stored would move the preview but not the scoring.
Usage:
detail recording set-stream-offset [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--name TEXT Stream name. [required]
--offset FLOAT Alignment offset in seconds: positive if the stream
began after the video. [required]
--help Show this message and exit.
detail recording status¶
Show recording video parts, arenas, and run history.
Usage:
detail recording status [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--help Show this message and exit.
detail recording verify¶
Check a recording's video parts are present and unchanged.
Referenced-in-place videos are compared against the fingerprint recorded when they were added; a moved/renamed file reports missing (relink it), a content change reports changed (remove and re-add). Exits non-zero if anything is wrong.
Usage:
detail recording verify [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the experiment.
[required]
--help Show this message and exit.
detail skeleton¶
Skeletons (§26): the points a keypoint model finds, the edges between them and the left/right pairs. One library per machine, shared by every experiment; the two presets are read-only. Whatever uses a skeleton keeps its own copy.
Usage:
detail skeleton [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail skeleton create¶
Add a skeleton to the library.
Usage:
detail skeleton create [OPTIONS] NAME
Options:
--from TEXT A preset or library id to copy, or a skeleton YAML file.
[required]
--help Show this message and exit.
detail skeleton delete¶
Delete a library skeleton nothing uses.
Usage:
detail skeleton delete [OPTIONS] SKELETON_ID
Options:
--help Show this message and exit.
detail skeleton duplicate¶
Copy a preset or library skeleton into a new library skeleton.
Usage:
detail skeleton duplicate [OPTIONS] SKELETON_ID
Options:
--name TEXT The copy's name.
--help Show this message and exit.
detail skeleton edit¶
Rename a library skeleton or replace its points.
Usage:
detail skeleton edit [OPTIONS] SKELETON_ID
Options:
--name TEXT Rename it (always allowed).
--skeleton FILE Replace its points, edges, pairs and layout with this YAML
file's; refused while anything uses it (use save-as-new).
--help Show this message and exit.
detail skeleton export¶
Write a skeleton to a YAML file another machine can import.
Usage:
detail skeleton export [OPTIONS] SKELETON_ID OUT_PATH
Options:
--help Show this message and exit.
detail skeleton import¶
Add a skeleton file to the library.
Usage:
detail skeleton import [OPTIONS] PATH
Options:
--name TEXT Its name (default: the file's).
--help Show this message and exit.
detail skeleton list¶
List the presets and the library's skeletons.
Usage:
detail skeleton list [OPTIONS]
Options:
--help Show this message and exit.
detail skeleton save-as-new¶
Keep an edit of SKELETON_ID as a new skeleton NAME (how a used one changes).
Usage:
detail skeleton save-as-new [OPTIONS] SKELETON_ID NAME
Options:
--skeleton FILE The edited skeleton (YAML). [required]
--help Show this message and exit.
detail skeleton show¶
Print one skeleton's points, edges and pairs, and what uses it.
Usage:
detail skeleton show [OPTIONS] SKELETON_ID
Options:
--help Show this message and exit.
detail tools¶
Tools (§27) — one-off runs that need no experiment.
Usage:
detail tools [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail tools delete¶
Delete a saved tool run by id.
Usage:
detail tools delete [OPTIONS] RUN_ID
Options:
--help Show this message and exit.
detail tools list¶
List saved tool runs.
Usage:
detail tools list [OPTIONS]
Options:
--help Show this message and exit.
detail tools quick-segment¶
Segment VIDEOS with one or more prompts and save a managed tool run.
Usage:
detail tools quick-segment [OPTIONS] VIDEOS...
Options:
--prompt TEXT A prompt to try (repeatable). Each repeat is a
SEPARATE prompt, compared side by side in sample
mode; put several classes in one prompt by comma-
separating them ('mouse,rat'). [required]
--sample sample: spread the frames evenly across each clip,
and compare several prompts side by side. The
default, because a still animal or an empty
opening makes the first N frames show nothing.
consecutive: read one clip straight through from
frame 0 with one prompt, which is what an overlay
video needs and the only mode one can be exported
from. [default: sample]
--consecutive Select the consecutive mode described under
--sample.
--whole-video Segment every frame of each clip (consecutive mode
only). No cap, so a long recording can run for
hours; the run is stoppable.
--model TEXT Detection model id. Default: auto (SAM3 on an
NVIDIA GPU).
--frames INTEGER RANGE How many frames to segment per clip. Ignored when
'whole video' is set. Every frame is run through
the model, so this is what the run costs.
[default: 50; x>=1]
--min-conf FLOAT RANGE Only show detections at or above this confidence.
The model kept every proposal it found, so moving
this changes the picture, not the run — slide down
to see what a looser threshold would have caught,
up to see what a stricter one would have cut.
[default: 0.5; 0.0<=x<=1.0]
--backend [cpu|cuda|mps] Compute backend (default: the best one this
machine has that the model supports: CUDA, then
MPS, then CPU).
--device INTEGER Device index (repeatable for multi-GPU; cuda
only). Left out: GPU 0 alone.
--export FILE Also render the overlay clip to this .mp4
(playback is GUI-only).
--help Show this message and exit.
detail tracking¶
Tracking (§13) — link detections frame-to-frame into tracks.
Usage:
detail tracking [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail tracking run¶
Submit a tracking run; blocks until complete.
Usage:
detail tracking run [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--recording TEXT Recording name (or id) within the
experiment. [required]
--detection TEXT Detection run to track: its per-frame
detections are linked into tracks (e.g.
det_01).
--tracker TEXT Tracking algorithm to run, by registered
tracker id. The default keeps one subject
per frame: it takes the highest-confidence
detection and attaches overlapping fragments
of the same animal to it, which is the shape
of every single-animal recording. Recordings
with more than one subject are not supported
yet. [default: anchor_tracker]
--iou-threshold FLOAT Box-overlap threshold. What it gates depends
on the tracker: how much a fragment must
overlap the subject to be merged into it.
--max-missed INTEGER Max missed frames before a track dies.
--conf-threshold FLOAT Confidence filter applied by the tracker.
--num-subjects INTEGER anchor_tracker: subjects to keep per frame.
--secondary-conf FLOAT anchor_tracker: min confidence for
overlapping secondary detections.
--max-secondary INTEGER anchor_tracker: max secondary detections
kept per anchor.
--require-contiguous / --no-require-contiguous
anchor_tracker: reject masks with more than
one connected component.
--hyperparam KEY=VALUE Set any hyperparam of the selected tracker
(repeatable), e.g. --hyperparam
max_secondary=3. Coerced to the type the
tracker declares; see the tracker's schema.
For knobs without a dedicated flag above.
--every-n-frames INTEGER Use every Nth frame of the video. Omit to
link every frame detection produced. Counted
in source frames, so it must be a multiple
of what detection used. Going coarser here
also thins what embedding can read, and
makes linking harder: the subject moves
further between the frames being compared.
--arena TEXT Field of view to track inside, by **name**
(recommended) or by this recording's own
arena id. A name is the same field of view
on every recording; an id is minted per
recording, so one id names a different
polygon on the recording next to it.
--help Show this message and exit.
detail train¶
Custom detection-model training (§12) — fit a model from a dataset.
Usage:
detail train [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail train attach¶
Reattach to a training run — stream a live one's progress (it keeps running with the
app/CLI closed) or print a finished one's status. Ctrl-C detaches; it does not cancel
the run (use train cancel for that).
Usage:
detail train attach [OPTIONS] MODEL_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail train delete¶
Delete a trained model (model.yaml + trainer run + weights).
Usage:
detail train delete [OPTIONS] MODEL_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--yes Skip the confirmation prompt.
--help Show this message and exit.
detail train list¶
List the experiment's trained models.
Usage:
detail train list [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail train promote¶
Promote a trained model into the machine-global catalog — usable in any experiment.
Copies the model (weights + classes) into the global catalog with its provenance (this experiment + the source dataset + base model + metrics); the original stays put.
Usage:
detail train promote [OPTIONS] MODEL_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT Name for the promoted global model (default: the
trained model's name).
--help Show this message and exit.
detail train resume¶
Resume a cancelled or crashed training from its last checkpoint (not from epoch 0).
A training stopped with train stop is finished, not interrupted: it keeps its best
weights and has nothing to resume.
Usage:
detail train resume [OPTIONS] MODEL_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail train run¶
Train a detection model from a dataset; blocks until complete.
Usage:
detail train run [OPTIONS]
Options:
--experiment DIRECTORY Experiment directory. [required]
--name TEXT Trained-model name. [required]
--dataset TEXT Dataset id (dataset_NNN). [required]
--trainer TEXT Trainer id. [default: ultralytics_yolo]
--base-model TEXT Pretrained starting weights — a YOLO-seg
checkpoint (labels are polygons). [default:
yolo11s-seg.pt]
--epochs INTEGER Maximum training epochs.
--batch-size INTEGER Images per training batch.
--imgsz INTEGER Training image size (square).
--patience INTEGER Early stopping: stop if no improvement for this
many epochs (0 disables).
--hyperparam KEY=VALUE Set any trainer hyperparam (repeatable); coerced
to its declared type.
--backend [cpu|cuda|mps] Compute backend (default: the best available:
CUDA, then MPS, then CPU).
--device INTEGER Device index (repeatable for multi-GPU; cuda
only). Left out: GPU 0 alone.
--help Show this message and exit.
detail train status¶
Show one trained model's record (classes, final metrics, best epoch so far).
Usage:
detail train status [OPTIONS] MODEL_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail train stop¶
Stop a training run at its next epoch, keeping the best weights so far.
The counterpart to interrupting train run, which kills the worker: that stops it now and
the model is lost, because the block that records the weights never runs. This asks instead,
so the run finishes the epoch it is on and writes its own record. It is not instant — an
epoch on real data is minutes.
Usage:
detail train stop [OPTIONS] MODEL_ID
Options:
--experiment DIRECTORY Experiment directory. [required]
--help Show this message and exit.
detail version¶
Which build of detail this is, what changed, and whether it is up to date.
The headless twin of the GUI's Version History panel. Everything is read from the git checkout detail was installed from.
Usage:
detail version [OPTIONS]
Options:
--history INTEGER RANGE Also list the newest N changes on this checkout's
branch. [default: 0; x>=0]
--check Fetch origin/main and say how far behind this copy
is (uses the network).
--help Show this message and exit.
detail video-root¶
Register the machine-local roots that reference-in-place videos live under.
Usage:
detail video-root [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
detail video-root list¶
List the video roots registered on this machine.
Usage:
detail video-root list [OPTIONS]
Options:
--help Show this message and exit.
detail video-root set¶
Register (or re-point) video root ALIAS to directory PATH on this machine.
Re-pointing an alias relinks every recording that references videos under it — the single-command fix for a whole video library that moved.
Usage:
detail video-root set [OPTIONS] ALIAS PATH
Options:
--help Show this message and exit.