Repository navigation
Installation and Development Environment
These instructions assume you have cloned the FishTrack repository and are working from its root directory. From a fresh checkout, with Git, network access, and Python 3.12/3.13 or uv available:
./scripts/make-venv.shThe setup installs the runtime dependencies and downloads the default Tiny SAM 2 and Grounding DINO models. It can require several GB of disk space including caches and environment files. A compatible environment and existing checkpoints are reused; an incompatible environment produces an error rather than being silently removed. If uv manages Python, its runtime is placed under .runtime/.
To select a different compatible Python interpreter, set the FISHTRACK_PYTHON environment variable before running setup. Once the models are installed, normal inference runs locally; processing does not upload the footage.
FishTrack has been developed and tested in the following environment:
| Component | Tested configuration |
|---|---|
| Operating system | macOS Tahoe 26.6.2 |
| Python | 3.12.14 |
| Processing device | CPU |
| Grounding DINO | Tiny |
| SAM 2 | SAM 2.1 Tiny |
The environment builder supports Python 3.12 and 3.13, selecting an available compatible interpreter or using uv to provision Python 3.12. The project's Python dependencies are defined in pyproject.toml, including pinned versions of PyTorch, TorchVision and Transformers and a specific SAM 2 source revision.
Hardware acceleration: CPU processing has been tested. Apple Metal Performance Shaders (MPS) and NVIDIA CUDA are selectable processing options, but have not been validated as part of the tested configuration.
Other platforms: FishTrack may operate on other operating systems and compatible hardware, but these configurations have not been tested. The environment described above should therefore be regarded as the reference configuration for v1.0.0 rather than a guarantee of compatibility across platforms.
The normal way to open the application from the project root is:
./scripts/run.shAlternatively, use the installed fishtrack-ui command or:
venv/bin/python -m fishtrack.guiThe desktop application is built with PySide6, while the processing engine is also available independently of the GUI. From the repository root, inspect the available command-line parameters with:
venv/bin/python -m fishtrack --helpThe installed fishtrack command or venv/bin/python main.py provide the same CLI interface. See Settings and Configuration for the documented arguments and their defaults.
The desktop application's packaged settings are in src/config/defaults/ui.json, with user preferences stored separately in an operating-system Qt configuration directory. Refer to Architecture and Processing Pipeline for the division between the GUI, processing worker and backends.