Skip to content

TouchDesigner implementation for Depth Anything and TensorRT monocular depth estimation, relying on TDPyEnvManager, Thread Manager, HuggingFace Transformers and TouchDesigner 2023.30k+ updates.

Notifications You must be signed in to change notification settings

jetXS/TDDepthAnythingRT

 
 

Repository files navigation

TDPyEnvDepthAnything - an easier setup for DepthAnything with TensorRT

⚠️ This is release requires TouchDesigner Experimental build 2025.30000+

TouchDesigner implementation for Depth Anything v2 with TensorRT, with the latest TouchDesigner tools

  • 🤗 HuggingFace model download and Transformers
  • Using TouchDesigner's TDPyEnvManager
  • Using TouchDesigner's ThreadManager
  • TouchDesigner 2023.30k+

Original code by Oleg Chomp (@olegchomp) and updated by JetXS (Michel Didier, Derivative)

header

Features

  • One-click install and run the script
  • In-TouchDesigner model download, acceleration and inference

Usage

Tested with TouchDesigner 2023.30k+

Install:

  1. Open the project, open the textport if it is not opened
  2. On the TDPyEnvManager, click on "Create from requirements.txt"
  3. Wait a bit while the environment is being setup
  4. On TDDepthAnything, click Download Model
  5. Once done, click on Accelerate, this will take a few minutes, go get a cup of tea
  6. Once done, click on Upload Model to GPU
  7. Turn on Active par and have fun

Note: Next time you start the project, just click on Upload Model to GPU and turn on Active par

Portability:

In any other project:

  • Add the TDPyEnvManager
  • Add the requirements.txt next to your .toe file
  • Add the TDDepthAnything COMP in your project
  • On the TDPyEnvManager, click on "Create from requirements.txt"
  • ... Follow previous install steps, or move the checkpoints folder.

Acknowledgement

Based on the following projects:

About

TouchDesigner implementation for Depth Anything and TensorRT monocular depth estimation, relying on TDPyEnvManager, Thread Manager, HuggingFace Transformers and TouchDesigner 2023.30k+ updates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%