Skip to main content

No project description provided

Project description

YOLO video detection in the TouchDesigner

Description

This project demonstrate how to use custom ML model in the TouchDesigner. The solution consists from two components:

  1. Script TOP in the TouchDesigner.
  2. External process to process data.
sequenceDiagram
    participant T as TouchDesigner
    participant S as Shared memory
    participant P as Python external process
    T->>S: Send frame to shared memory
    S->>P: Read frame from shared memory
    P->>S: Process frame and write to shared memory
    S->>T: Read processed frame from shared memory

Requirements

  1. Python 3.9 or higher. It is more preferable to have same version as in the TouchDesigner.

How to run

Install prebuild package from PyPi

PyPI version

From source

Install dependencies

For GPU:

pip install -r. /requirements.gpu.txt

For CPU:

pip install -r. /requirements.cpu.txt

For development:

pip install -r ./requirements.dev.txt

Compile Cython extension

You need C compiler to compile extension.

Develop mode

pip install -e .

Binary distribution

To compile binary distribution:

python -m cibuildwheel --platform <your_platform>

Install binary distribution:

pip install ./dist/*.whl

Usecases

Video detection

Run:

python ./main.py -c <checkpoint_path> -i <video_path> -o <video_path>

With TouchDesigner

Run server processing:

python ./processing.py -p <path_to_model>

Open touch_designer.py in the TouchDesigner as script TOP.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

touch_designer_yolo_detection-0.0.3-cp39-cp39-win_amd64.whl (54.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

touch_designer_yolo_detection-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (246.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

touch_designer_yolo_detection-0.0.3-cp39-cp39-macosx_10_9_x86_64.whl (54.6 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

Details for the file touch_designer_yolo_detection-0.0.3-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for touch_designer_yolo_detection-0.0.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e9d38dd5bc68790ff38228e024d9a3895b4d2109d369ef1edef2bacea5a3db5b
MD5 ca1c232f555813f9774eb80874228633
BLAKE2b-256 307187877c1bf0ad9a14cdc8c8d724e8dc3d3e9ac5a009f570f90fa0a19d6719

See more details on using hashes here.

File details

Details for the file touch_designer_yolo_detection-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for touch_designer_yolo_detection-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e91503355895171de7bfa67a846f70e1722f3e401e60f35e93c4e9eb679ebf89
MD5 7f34888d4014130ae70dc1e009d109eb
BLAKE2b-256 a9e548df8978c226034933ecc158702633f3654642355415f3f0cc1c770cebb6

See more details on using hashes here.

File details

Details for the file touch_designer_yolo_detection-0.0.3-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for touch_designer_yolo_detection-0.0.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 08875253173c76911a10a286d43fee1c83d2c052033d9790984dc0e4bf5de74c
MD5 f334392567b1c25da249ad3aef6399e7
BLAKE2b-256 8b9735d52d3a8dea790db7b15c01cf818d36e76c1f97e9abbbc5a3190e969b63

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page