Skip to content

User guides

A step-by-step path from a new computer to analyzed behavior, for experiments with one animal in each video. You install Detail, set it up, then work through a full analysis in the Detail desktop app, one chapter at a time. No programming is needed. You type (or paste) a few commands during installation, and every one is given to you. After that, everything happens in the Detail window.

Every chapter follows one example experiment, filmed from above. The guide works the same for a camera beside the animal: Side-view and isometric recordings, in chapter 4, says what changes.

An NVIDIA GPU is required

Detail finds and follows animals with AI models that need an NVIDIA graphics card (GPU) in your computer. A computer with no NVIDIA GPU, such as any Mac and most laptops, cannot run them.

About GPUs

A GPU (graphics processing unit) is the chip that draws your screen. The AI models Detail uses run thousands of times faster on a GPU than on the main processor, but only on GPUs made by NVIDIA, because they are built on NVIDIA's CUDA software. Intel and AMD graphics, and Apple's chips, cannot run them.

The path at a glance

First install Detail, once per computer, then configure it. The chapters come after that.

Each box is one chapter. Click a box to open it. The first tag says where the chapter works in Detail: the button along the top, then the page in the list on the left. A GPU tag means the chapter's heavy work runs on your computer's GPU, and takes a while.

  1. Create an experiment and add recordings Experiments › Recordings Bring your videos in and describe each recording.
  2. Set up each recording Experiments › Recordings › a recording Draw where the animal can be, and how big things are.
  3. Detect and track Experiments › Models Experiments › Processing pipeline GPU Find the animal in every frame, and follow it.
  4. Keypoints Experiments › Models Experiments › Processing pipeline GPU Place body points on the animal: nose, paws, tail base.
  5. Embedding Experiments › Processing pipeline GPU Describe what the animal looks like in each frame, for the analyses.
  6. Location export Experiments › Analysis Where the animal is on every frame, against your regions and points, as spreadsheets.
  7. Behavior scan Experiments › Analysis Find a behavior you can name, from a few examples.
  8. Clustering Experiments › Analysis Let Detail group frames into behaviors you have not named yet.

Chapters 1 to 5 build on each other: do them in order. Chapter 6 needs only chapters 1 to 3, so it can come as soon as tracking is done. Chapters 7 and 8 both start from chapter 5, so do either or both.

About this guide: what each step makes

Each chapter makes a run: a saved result that the next chapter starts from. Detection finds the animal in each frame. Tracking joins those into one animal over time. Keypoints place body points on it. Embedding turns each frame into a list of numbers that describes the animal's posture, so that frames of the same behavior have similar numbers. Behavior scan and clustering both work from those numbers.

Every run keeps the settings it was made with, so you can see later exactly how a result was made, and start a new run from the same settings.

Find a task

Every task is a step in one of the chapters. To do one thing without reading in order, find it here.

To Go to
Install Detail, or update it Install on Windows, Install on Linux
Launch Detail again later Windows, Linux
Get PyTorch to use the GPU Configure, step 1
Set up a Hugging Face token Configure, step 2
Install SAM 3 and download the models Configure, steps 3 and 4
Create an experiment Chapter 1, step 1
Add videos as recordings Chapter 1, step 2
Describe each recording: box, animal, dose, date Chapter 1, step 3
Add a recording that is in several video files Chapter 1, step 4
Add many recordings at once, from a manifest file Chapter 1, step 5
Draw the field of view Chapter 2, step 2
Calibrate distance, for results in millimetres Chapter 2, step 3
Mark regions and points, such as a lever or a corner Chapter 2, step 4
Copy a setup to other recordings Chapter 2, step 5
Add a stream: box events, a sensor log, hand-scored behavior Chapter 2, step 6
Line a stream up with the video Chapter 2, step 6
Test a detection prompt Chapter 3, step 1
Train a fast detector Chapter 3, step 2
Detect and track the animal Chapter 3, steps 3 and 4
Save the tracks as files Chapter 3, step 4
Make your own skeleton Chapter 4, step 2
Place and track keypoints Chapter 4, steps 4 and 5
Take keypoints to DeepLabCut, SLEAP or NWB Chapter 4, step 5
Work with a side-view recording Chapter 4
Run an embedding Chapter 5
Export where the animal is, as spreadsheets Chapter 6
Plot an animal's path, speed or body shape Chapter 6
Find a behavior from a few examples Chapter 7
Group behavior into clusters and label them Chapter 8
Save a cluster's clips Chapter 8, step 4

Choose your install page

Every guide starts with the same installation. Find the row that matches your computer and follow only that install page. Each page ends by telling you which page to read next.

Your computer Install page
Windows 10 or 11, with an NVIDIA GPU Install on Windows
Linux, with an NVIDIA GPU Install on Linux
How to tell whether your computer has an NVIDIA GPU
  • Windows: press Ctrl+Shift+Esc to open Task Manager. Click More details if you see it, then the Performance tab. Each GPU entry on the left names its maker. You need one that says NVIDIA.
  • Linux: open a terminal and run lspci | grep -i nvidia. A line that names an NVIDIA device means you have one.

After the install page, go on to Configure Detail, then chapter 1, Create an experiment and add recordings.

Hardware and disk space

The computer you install Detail on needs:

Minimum Recommended
NVIDIA GPU 8 GB of GPU memory, such as a GeForce RTX 2070 SUPER or RTX 3060 16 GB of GPU memory or more, such as a GeForce RTX 4080 or RTX 4090
Memory (RAM) 16 GB 32 GB or more
Processor 4 cores 8 cores or more
Free disk space for the installation 25 GB 50 GB, on an SSD
Operating system Windows 10 or 11 (64-bit), or Ubuntu 22.04 or newer the same

The installation takes about 12 GB once it is done. The rest of the free space in the table is room for the installer's temporary downloads and for the files your runs make. Your recordings need space of their own on top of this.

Part of the installation Size
Detail itself 0.3 GB
The Python environment, including PyTorch with GPU support 7 GB
SAM 3, the detection model 3.5 GB
DINOv3, the embedding model 1.2 GB
Keypoint and tracking models under 0.5 GB
About these numbers

The sizes were measured on a Windows install. GPU memory matters most: a model that does not fit in it stops with an "out of memory" error, or on Windows slows to a crawl. More GPU memory lets Detail process more video frames at once, which is faster. The settings that decide how much memory a step uses, such as the Batch size for training a model, start at values that fit an 8 GB GPU. Detect and track says how to raise them on a larger one. RAM matters when you analyze many long recordings together.

To see how much memory your GPU has on Windows, open Task Manager's Performance tab and click the NVIDIA GPU: Dedicated GPU memory is the number to compare. On Linux, nvidia-smi shows it as the second number under Memory-Usage.

What you need

  • A computer you can install software on. Some steps ask for an administrator password.
  • About an hour for installation. Most of it is waiting for downloads.
  • Free disk space for Detail, the AI models, and your videos. Plan for tens of gigabytes before your videos.
  • Your GitHub account. Detail downloads from GitHub. The install page signs your computer in to the account you read these guides with.
  • A Hugging Face account. The AI models download from Hugging Face. Configure Detail shows you how to make one.
  • Your videos, one animal in each. A few minutes of video is enough to follow the guide. Common formats such as .mp4 and .avi work.
  • Time. The chapters with the GPU tag run for a while: from minutes for a short video to hours for a large experiment. You can keep using Detail while they run.
  • For a side view: the whole animal in the picture, from the side. For a view from above: the whole floor of the arena in the picture.
About this: closing Detail while something is running

Runs carry on without Detail: detection, tracking, distills and the rest each run as their own process, so you can close the window and open it again later to see how they stand. Video imports do not: they run inside Detail, so closing it stops them, and those recordings are marked failed. Leave Detail open until every import says ready.

If you close Detail while something is running, it asks first, in a window called Still in progress:

  • Cancel runs & quit stops everything that is running, then closes.
  • Leave running & quit closes and leaves the runs going. When only imports are running it says Quit anyway, because they stop either way.
  • Don't quit keeps Detail open.
About this: what is different between the two views

Most of the guide is the same for both views. The demo is filmed from above; Side-view and isometric recordings, in chapter 4, says what changes for a camera beside the animal:

  • The keypoints. A view from above and a side view see different body points, so they use different skeletons (chapter 4).
  • Turning the animal. Before describing each frame, Detail turns the animal to face one way: from above it turns the head to point right, from the side it flips the animal to face right (chapter 5).
  • What a behavior looks like. Rearing, for example, is the animal standing up. From the side you see it stand; from above you see its outline shrink. Both can be found, from different evidence.

The example experiment

Camera above the arena, looking down
Recordings 3, one mouse in each
Length 5 minutes each

Your own experiment will have its own names and settings. The guide says which choices depend on your experiment and which you can leave as they are.

How to read these guides

Each page is a list of numbered steps. Do them in order, and do not skip a step's check: it tells you the step worked before you build on it.

  • Grey boxes like the one below hold a command. Copy it with the button at the box's right edge, paste it into your terminal, and press Enter.

    echo hello
    
  • The words before each command say where to type it, such as In PowerShell or In the terminal. When a step says the same window, use the window the previous step left you in: it depends on the folder or setting that step chose.

  • About this step boxes explain what a step does and why. They are closed until you click them, and you can skip them.
  • If this doesn't work boxes list what to try when a check fails.
  • The first time a screen or dialog appears, its screenshot has numbered markers on every button and field, and a What everything on this screen does box under it says what each number does. Later chapters link back to it rather than repeat it.
New to the terminal?

A terminal is a window where you type commands instead of clicking. Windows calls its terminal PowerShell, and Linux usually calls it Terminal. The install pages tell you how to open it.

The terminal shows a prompt, a short line ending in > or $ that means it is ready. After you press Enter, wait for the prompt to come back before you type the next command. Some commands take minutes and print a lot of text while they work. That is normal.

Red text or a line containing error usually means the command failed. Stop there and check that step's If this doesn't work box before going on.