⚠️ 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)
- One-click install and run the script
- In-TouchDesigner model download, acceleration and inference
Tested with TouchDesigner 2023.30k+
- Open the project, open the textport if it is not opened
- On the TDPyEnvManager, click on "Create from requirements.txt"
- Wait a bit while the environment is being setup
- On TDDepthAnything, click Download Model
- Once done, click on Accelerate, this will take a few minutes, go get a cup of tea
- Once done, click on Upload Model to GPU
- 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
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.
Based on the following projects:
- TDDepthAnything - Depth-Anything TensorRT in TouchDesigner
- Depth-Anything - Unleashing the Power of Large-Scale Unlabeled Data.
- Depth-Anything TensorRT C++ - Leveraging the TensorRT API for efficient real-time inference.
- TopArray - Interaction between Python/PyTorch tensor operations and TouchDesigner TOPs.