Coder Social home page Coder Social logo

olegchomp / tddepthanything Goto Github PK

View Code? Open in Web Editor NEW
90.0 5.0 3.0 125 KB

TouchDesigner implementation for Depth Anything and TensorRT monocular depth estimation.

Python 98.70% Batchfile 1.30%
depth-anything depth-estimation monocular-depth-estimation tensorrt touchdesigner

tddepthanything's Issues

"Torch not compiled with CUDA enabled" error

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

Can't import torch

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

TopArray license not included in code

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!

accelerate.bat - not working, but..

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

Error on .tox Init

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.

Issues with instructions running accelerate.bat first time

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 . . .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.