olegchomp / tddepthanything Goto Github PK
View Code? Open in Web Editor NEWTouchDesigner implementation for Depth Anything and TensorRT monocular depth estimation.
TouchDesigner implementation for Depth Anything and TensorRT monocular depth estimation.
Hi there, I'm using Touchdesigner 23.11600 on Windows 10
Encountering the error below when adding the .tox to a project.
Error retrieving extension for /project1/TDDepthAnything: (Extension 1) File "/project1/TDDepthAnything/DepthAnythingExt", line 50, in __init__
File "D:\TouchDesigner/Tox & Add Ons/TDDepthAnything-main/TDDepthAnything-main\.venv/Lib/site-packages\torch\cuda\__init__.py", line 305, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
File "/project1/TDDepthAnything/parexec1"
AttributeError("'NoneType' object has no attribute 'num_bindings'")
(Debug - DAT:/project1/TDDepthAnything/DepthAnythingExt fn:__init__ line:47)
Traceback (most recent call last):
File "/project1/TDDepthAnything/script1_callbacks", line 18, in onCook
AttributeError: 'NoneType' object has no attribute 'run'
python >>>
Perhaps unrealted, I've tried to 'on Settings page change path to TDDepthAnything folder and click Re-init'. Please could you confirm the folder is the 'TDDepthAnything-main' folder path that I should be adding?
Many thanks for your help,
Chris
Added 'C:\TDDepthAnything\venv\Lib\site-packages' to sys.path.
DAT compile error: /project1/TDDepthAnything/DepthAnythingExt
Traceback (most recent call last):
File "/project1/TDDepthAnything/DepthAnythingExt", line 28
r = previousimport(*args, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\TDDepthAnything\venv\Lib\site-packages\torch_init_.py", line 141
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\TDDepthAnything\venv\Lib\site-packages\torch\lib\shm.dll" or one of its dependencies.
It seems there is an issue when importing pytorch
Has anyone solved that
Hi I noticed that the license specified in TopArray was not included the code. Would you be able include it in the extension where the TopArray classes are used? Or if you loaded TopArray.py into the network and imported the module into your extension the license would be include without it being in your extension.
Ah I didn't realize you linked the the library on the readme. Thanks!
Hi,
just wanted to let you know that the accelerate.bat throws an error, as it can not find python.
However, it was suggested online to try "py" instead of "python" and that did work for me.
Maybe pother users have the same issue...
All the best
Stefan
Hello!
Have problem with .tox component.
accelerate.bat
has been running twice without errors.
DAT compile error: /project1/TDDepthAnything/DepthAnythingExt
Traceback (most recent call last):
File "/project1/TDDepthAnything/DepthAnythingExt", line 1
r = previousimport(*args, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Downloads/TDDepthAnything-main\.venv/Lib/site-packages\tensorrt\__init__.py", line 18
from tensorrt_bindings import *
r = previousimport(*args, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Downloads/TDDepthAnything-main\.venv/Lib/site-packages\tensorrt_bindings\__init__.py", line 141
from .tensorrt import *
r = previousimport(*args, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'tensorrt_bindings.tensorrt'
Error retrieving extension for /project1/TDDepthAnything: (Extension 1) td.tdError: Module compilation error. See /project1/TDDepthAnything/DepthAnythingExt for details.
Traceback (most recent call last):
File "/project1/TDDepthAnything/script1_callbacks", line 18, in onCook
AttributeError: 'NoneType' object has no attribute 'run'`
Pulse btns gives the same error.
Just something to note when running accelerate.bat for the first time on python 3.11.8:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycuda
Failed to build pycuda
ERROR: Could not build wheels for pycuda, which is required to install pyproject.toml-based projects
Found existing installation: nvidia-cudnn-cu11 8.9.4.25
Uninstalling nvidia-cudnn-cu11-8.9.4.25:
Successfully uninstalled nvidia-cudnn-cu11-8.9.4.25
Also getting an issue after including the models in checkpoints about :
Preparing for model acceleration...
Traceback (most recent call last):
File "D:\Experimental\TDDepthAnything-main\TDDepthAnything-main\accelerate_model.py", line 5, in
from polygraphy.backend.trt import (
ModuleNotFoundError: No module named 'polygraphy'
Press any key to continue . . .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.