Skip to main content

sp




Sinapsis Trackers

Mono repo with modular packages for multi-object tracking using advanced algorithms.

🐍 Installation • 📦 Packages • 🌐 Webapps • 📙 Documentation • 🔍 License

🐍 Installation

This mono repo consists of modular packages for implementing and visualizing multi-object tracking using various tracking algorithms and models:

  • sinapsis-cotracker
  • sinapsis-supervision
  • sinapsis-rf-trackers

Install using your package manager of choice. We encourage the use of uv

sinapsis-cotracker

UV instructions

Install cotracker in your working environment as follows:

uv pip install git+https://github.com/facebookresearch/co-tracker.git

then install sinapsis-cotracker

uv pip install sinapsis-cotracker --extra-index-url https://pypi.sinapsis.tech

Raw pip instructions

Install cotracker in your working environment as follows:

pip install git+https://github.com/facebookresearch/co-tracker.git

then install sinapsis-cotracker

pip install sinapsis-cotracker --extra-index-url https://pypi.sinapsis.tech

sinapsis-supervision

UV instructions

Install sinapsis-supervision

uv pip install sinapsis-supervision --extra-index-url https://pypi.sinapsis.tech

Raw pip instructions

Install sinapsis-supervision

pip install sinapsis-supervision --extra-index-url https://pypi.sinapsis.tech

sinapsis-rf-trackers

UV instructions

Install sinapsis-rf-trackers

uv pip install sinapsis-rf-trackers --extra-index-url https://pypi.sinapsis.tech

Raw pip instructions

Install sinapsis-rf-trackers

pip install sinapsis-rf-trackers --extra-index-url https://pypi.sinapsis.tech

(Optional) Install packages with all additional dependencies

Templates in each package may require extra dependencies. For development, we recommend installing the package with all the optional dependencies:

  uv pip install sinapsis-cotracker[all] --extra-index-url https://pypi.sinapsis.tech

  uv pip install sinapsis-supervision[all] --extra-index-url https://pypi.sinapsis.tech

  uv pip install sinapsis-rf-trackers[all] --extra-index-url https://pypi.sinapsis.tech

or with raw pip:

  pip install sinapsis-cotracker[all] --extra-index-url https://pypi.sinapsis.tech

  pip install sinapsis-supervision[all] --extra-index-url https://pypi.sinapsis.tech

  pip install sinapsis-rf-trackers[all] --extra-index-url https://pypi.sinapsis.tech
  uv pip install sinapsis-trackers[all] --extra-index-url https://pypi.sinapsis.tech

📦 Packages

This repository is organized into modular packages, each designed for specific integration with different tracking models, including CoTracker and ByteTrack. These packages provide ready-to-use templates for applications like object tracking, multi-object tracking, and result visualization in real-time or offline.

Below is an overview of the available packages:

Sinapsis Cotrackers

This sinapsis package provides a robust implementation for multi-object tracking with the Facebook Research's Co-Tracker model. It includes:

  • Templates for multi-object tracking using Co-Tracker, offering flexible offline, online, and visualization modes.
  • Efficient processing and visualization of tracking results directly on video frames for clear output.
  • Tools for handling dynamic tracking across frames, including padding, line width, and trace settings.

For specific instructions and further details, see the README.md.

Sinapsis Supervision

This Sinapsis package provides a comprehensive solution for object tracking with the ByteTrack algorithm. It includes:

  • A template for object tracking using ByteTrack, designed to handle real-time multi-object tracking in videos.
  • Detection processing and updates with configurable parameters for track activation, matching, and occlusion handling, improving accuracy and stability.

For more details, see the README.md.

Sinapsis RF Trackers

This Sinapsis package provides robust templates for multi-object tracking, leveraging the trackers library. It integrates powerful algorithms like SORT and DeepSORT into the Sinapsis ecosystem.

  • SORT Tracker: A simple and efficient motion-based tracker ideal for high-speed applications.
  • DeepSORT Tracker: An advanced tracker that enhances SORT by incorporating appearance features using a configurable Re-Identification (Re-ID) model. This makes it more robust against occlusions and helps maintain object identities in complex scenes.
  • Flexible Configuration: Offers extensive attributes to fine-tune tracker behavior, including support for various Re-ID models via the timm library.

For specific instructions and further details, see the README.md.

For more details, see the official documentation

🌐 Webapps

The webapps included in this project showcase the modularity of the templates, in this case for multi-object tracking and visualization tasks.
git clone git@github.com:Sinapsis-ai/sinapsis-trackers.git
cd sinapsis-trackers
🐳 Docker

IMPORTANT: This Docker image depends on the sinapsis-nvidia:base image. For detailed instructions, please refer to the Sinapsis README.

  1. Build the sinapsis-trackers image:
docker compose -f docker/compose.yaml build
  1. Start the container:

For sinapsis-cotracker

docker compose -f docker/compose_tracker.yaml up sinapsis-cotracker-gradio -d

For sinapsis-supervision with default bytetrack-ultralytics demo

docker compose -f docker/compose_tracker.yaml up sinapsis-supervision-gradio -d

For sinapsis-supervision with bytetrack-dfine demo

export DFINE_CONFIG_DOWNLOAD=True
export AGENT_CONFIG_PATH=/app/sinapsis_supervision/configs/bytetrack_dfine_demo.yml
docker compose -f docker/compose_tracker.yaml up sinapsis-supervision-gradio -d
  1. Check the status:

For sinapsis-cotracker

docker logs -f sinapsis-cotracker-gradio

For sinapsis-supervision

docker logs -f sinapsis-supervision-gradio
  1. The logs will display the URL to access the webapp, e.g.,:
Running on local URL:  http://127.0.0.1:7860

NOTE: The local URL can be different, please check the logs

  1. To stop the app:
docker compose -f docker/compose_tracker.yaml down
📦 UV To run the webapp using the uv package manager, please:
  1. Create the virtual environment and sync the dependencies:
uv sync --frozen --extra cotracker
  1. Install the sinapsis-trackers package:
uv pip install sinapsis-trackers[all] --extra-index-url https://pypi.sinapsis.tech
  1. Run the webapp:

For demo running default cotracker-online agent config.

uv run webapps/tracking_demo.py

For demo running bytrack-ultralytics agent config.

export AGENT_CONFIG_PATH="packages/sinapsis_supervision/src/sinapsis_supervision/configs/bytetrack_ultralytics_demo.yml"
uv run webapps/tracking_demo.py

For demo running bytetrack-dfine agent config.

export DFINE_CONFIG_DOWNLOAD=True
export AGENT_CONFIG_PATH="packages/sinapsis_supervision/src/sinapsis_supervision/configs/bytetrack_dfine_demo.yml"
uv run webapps/tracking_demo.py
  1. The terminal will display the URL to access the webapp, e.g.:
Running on local URL:  http://127.0.0.1:7860

NOTE: The local URL can be different, please check the output of the terminal.

📙 Documentation

Documentation is available on the sinapsis website

Tutorials for different projects within sinapsis are available at sinapsis tutorials page

🔍 License

This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the LICENSE file.

For commercial use, please refer to our official Sinapsis website for information on obtaining a commercial license.

Metadata

Release files for sinapsis-trackers 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sinapsis-trackers 0.1.10
File Size Uploaded
sinapsis_trackers-0.1.10.tar.gz 34.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sinapsis-trackers 0.1.10
File Interpreter ABI Platform
sinapsis_trackers-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 75.0 kB

Release files / sinapsis_trackers-0.1.10.tar.gz

Download URL sinapsis_trackers-0.1.10.tar.gz
Size 34.0 kB
Tags Source
SHA-256 checksum
How to use checksums
05da70cc631f13f4b7bf9faba8637c5e50f478eddb2eedd65c89baecb2485391
BLAKE2b-256 checksum
How to use checksums
f57be9832c5d80ea1e139a69ef8139ffed5ea92d8fe8fdebc6c6f338283721d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.16

Release files / sinapsis_trackers-0.1.10-py3-none-any.whl

Download URL sinapsis_trackers-0.1.10-py3-none-any.whl
Size 41.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4632bcfc35fca74b5f859d7f96e5e6d9d7fe28d0b1337e22d64f6ba8010f379f
BLAKE2b-256 checksum
How to use checksums
0ecdd73aaca580720fdd3bdee836f38ce1f5f5bb384c66016866fe28576484ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.16

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page