Skip to content

Tutorials

This page points to practical tutorial material that exists in the repository today. Use Getting Started first if you have not yet verified that Annolid opens a video and saves annotations in your environment.

Choose a Tutorial Path

If you need to... Use
Understand what to label, which shapes to use, and pitfalls to avoid Labeling Guide
Reuse pretrained weights by behavioral paradigm or fine-tune on 20–50 frames Pretrained Model Zoo
Follow a complete worked real-data demo (polygons, 14 keypoints, QC, zones, report) Resident-Intruder End-to-End Walkthrough (mouse083_task1_annotator1)
Train FastPose models, run ONNX/INT8 inference, benchmark vs. SLEAP, and build HTML reports FastPose Studio End-to-End GUI Tutorial (with generated dataset)
Create, customize, and drive 3D Mouse, Rat, and Drosophila digital twins (GUI, Sim-to-Real, Real-to-Sim & Python) Create 3D Animal Digital Twins Step-by-Step Tutorial
Learn the basic GUI tracking loop Tracking four interacting mice with one labeled frame and Workflows
Downsample or preprocess videos GUI video downsample workflow and Video Processing with FFmpeg
Speed up CUTIE tracking Segment-based batch tracking and GUI video downsample workflow
Track sparse body-part keypoints without training a pose model DINOv3 Keypoint Tracking, TAPNext ONNX point tracking, or CoWTracker point tracking
Score behavior events Behavior labeling with Timeline, Flags, and Annolid Bot
Define zones and export zone metrics Draw zones quickstart and Zone analysis workflow
Correct CUTIE ID switches, drift, or missing frames Segment-based batch tracking and Tracking correction with SAM3 Agent and Annolid Bot
Train or evaluate models Google Colab Training and Inference, notebook tutorials in docs/tutorials/, and model-specific annolid-run help output
Run realtime camera workflows Realtime Wireless Camera Detection and Multi-Camera Realtime Detection
Run local CPU OCR on video overlays, multi-page PDFs, or scanned images OCR Tutorial (Video, PDF & Images) and Local OCR (OCRia-nano-1)

Video Walkthroughs

Annolid Track Animals dialog with model, video, checkpoint, and output controls

Focused Markdown Tutorials

Notebook Tutorials & Example Code Recipes

Annolid separates locally runnable Jupyter notebooks from cloud-GPU Colab notebooks and historical/external example snippets:

Locally Runnable Jupyter Book Notebooks (book/tutorials/)

Each notebook below runs offline in a standard Annolid Python environment (auto-generating synthetic demo inputs when no custom path is set) and is published in The Annolid Book:

  • book/tutorials/Extract_frames_from_a_video.ipynb — smart frame sampling (uniform, kmeans, flow), explicit indices, and batch folders
  • book/tutorials/Annolid_post_processing_distances.ipynb — gap filling, IQR outlier filtering, path length, speed, pairwise distances, TrackingResultsAnalyzer, and analyze_kinematics
  • book/tutorials/Annolid_post_processing_fix_left_right_switch.ipynb — midline swap repair, static landmark mode fill, rolling-window gap repair, and evaluate_track_qc
  • book/tutorials/Annolid_post_processing_masks_ious_and_areas.ipynb — COCO RLE mask areas/perimeters, IoU overlap merging, and batch CSV cleanup (consolidates both single-file and batch mask post-processing tutorials)
  • book/tutorials/Digging_Analysis_tutorial.ipynb — timestamp conversions, smoothed rat–cup mask IoU bout onset detection, and CSV export

Active Google Colab GPU Notebooks (docs/tutorials/)

Launch these GPU-backed workflows directly in Google Colab (see Google Colab Training and Inference):

  • docs/tutorials/Annolid_Colab_Train_and_Inference.ipynb
  • docs/tutorials/Annolid_Instance_Segmentation_on_YOLO_Tutorial.ipynb
  • docs/tutorials/Annolid_Pose_Estimation_on_YOLO_Tutorial.ipynb
  • docs/tutorials/YOLO_SAHI_inference_for_ultralytics.ipynb

Legacy & External-Framework Example Notebooks (docs/tutorials/)

Historical notebooks depending on Detectron2, YOLACT, Ray Serve, FiftyOne, SlowFast, RAFT, or third-party Colab repositories remain in docs/tutorials/ for link compatibility. Distilled copy-paste example code and modern annolid-run replacements for all 24 notebooks are available in the Example Code Recipes & Notebook Migration Guide.

How To Choose

  • Start with the GUI/video workflow if you are labeling or reviewing data interactively.
  • Use the notebook tutorials when you need training, evaluation, or post-processing examples.
  • Use the markdown guides when you need an operational setup such as MCP, sandboxed shell execution, or batch tracking.
  • Use annolid-run help train <model> or annolid-run help predict <model> when a tutorial mentions a model backend and you need the current command-line options.

Repository-first Note

Some older docs still link to historical book content, but the current maintained tutorial sources for this repo live under docs/ and docs/tutorials/.