Giter Site home page Giter Site logo

yuvraj108c / comfyui-depth-anything-tensorrt Goto Github PK

View Code? Open in Web Editor NEW
71.0 71.0 6.0 3.26 MB

ComfyUI Depth Anything (v1/v2) Tensorrt Custom Node (up to 14x faster), licensed under CC BY-NC-SA 4.0

License: Other

Python 100.00%
comfyui comfyui-nodes depth-anything depth-map onnx stable-diffusion tensorrt tensorrt-inference

comfyui-depth-anything-tensorrt's People

Contributors

buffmcbighuge avatar yuvraj108c avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

comfyui-depth-anything-tensorrt's Issues

Trouble installing requirements

After a fresh install of the module from the ComfyUI manager, I followed the instructions and ran pip install -r requirements.txt
However, this is the error I received when running pip

Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting cuda-python (from -r requirements.txt (line 1))
  Downloading cuda_python-12.4.0-cp310-cp310-win_amd64.whl.metadata (12 kB)
Collecting tensorrt (from -r requirements.txt (line 2))
  Downloading tensorrt-8.6.1.post1.tar.gz (18 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Adrian\AppData\Local\Temp\pip-install-r7pwndnd\tensorrt_14eb96209b3642c6b050758595e14a19\setup.py", line 103, in <module>
          if disable_internal_pip or nvidia_pip_index_url in parent_command_line() or nvidia_pip_index_url in pip_config_list():
        File "C:\Users\Adrian\AppData\Local\Temp\pip-install-r7pwndnd\tensorrt_14eb96209b3642c6b050758595e14a19\setup.py", line 96, in parent_command_line
          return subprocess.check_output(["ps", "-p", str(pid), "-o", "command", "--no-headers"]).decode()
        File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 421, in check_output
          return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
        File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 503, in run
          with Popen(*popenargs, **kwargs) as process:
        File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 971, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1456, in _execute_child
          hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
      FileNotFoundError: [WinError 2] The system cannot find the file specified
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

This is on Windows 11. Am I missing another dependency?

Serialization assertion plan

Error: [TRT] [E] 1: [runtime.cpp::parsePlan::314] Error Code 1: Serialization (Serialization assertion plan->header.magicTag == rt::kPLAN_MAGIC_TAG failed.)
File "/root/ComfyUI/custom_nodes/ComfyUI-Depth-Anything-Tensorrt/init.py", line 38, in main

System Info: Ubuntu 20.04 LTS, Cuda 12.1, Tensorrt 8.6.1, Python 3.10, RTX3090 GPU

I used your code and I also tried to re-export the onnx model, but still this error, is it because of the cuda version?

Model Reloading

Every subsequent run reloads the model into memory. For streaming purposes, it adds lots of latency. Ideally the model should be cached in memory.

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.