I'm really excited to launch a new Depth Anything V2 plugin for TouchDesigner that runs on both Mac and PC with no install process—just open the .toe file and select your webcam, or connect and TOP to the component. Video tutorial coming soon.This project file contains the depth_small and depth_base models. The project also includes the example shown on the top left of the thumbnail using instancing.Play around with the ModelSize Parameter to get a tradeoff of performance and quality of the output. Note: you may need to hit reset after tweaking. You can have the model go larger, but it was trained on square images at 518. I also have your video auto-padded to a square aspect ratio internally so you don't have to deal with it.
Tested on TouchDesigner 2023.12370. Please Do not use older versions of TD since it's not backwards compatible.