Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'tensorrt_bindings' #41

Closed
fernandoyang83 opened this issue Oct 18, 2023 · 3 comments
Closed

ModuleNotFoundError: No module named 'tensorrt_bindings' #41

fernandoyang83 opened this issue Oct 18, 2023 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@fernandoyang83
Copy link

Hello,

I've follow the instructions to install the TensorRT extension. But I've encountered 3 problem:

  1. I've not found the Generate Default Engine Button described in the README.md
  2. After installation, when I start up the webui, I get these erro messages:
*** Error loading script: trt.py
    Traceback (most recent call last):
      File "C:\Users\ferna\SD\modules\scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\ferna\SD\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 940, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Users\ferna\SD\extensions\Stable-Diffusion-WebUI-TensorRT\scripts\trt.py", line 10, in <module>
        import ui_trt
      File "C:\Users\ferna\SD\extensions\Stable-Diffusion-WebUI-TensorRT\ui_trt.py", line 10, in <module>
        from exporter import export_onnx, export_trt
      File "C:\Users\ferna\SD\extensions\Stable-Diffusion-WebUI-TensorRT\exporter.py", line 10, in <module>
        from utilities import Engine
      File "C:\Users\ferna\SD\extensions\Stable-Diffusion-WebUI-TensorRT\utilities.py", line 32, in <module>
        import tensorrt as trt
      File "C:\Users\ferna\SD\venv\Lib\site-packages\tensorrt\__init__.py", line 18, in <module>
        from tensorrt_bindings import *
    ModuleNotFoundError: No module named 'tensorrt_bindings'
  1. No models under SD Unet.

Much appreciated if someone can help me.

@contentis contentis added the duplicate This issue or pull request already exists label Oct 18, 2023
@contentis
Copy link
Collaborator

Please follow this guide to resolve manually: #27 (comment)
A fix for this will be posted soon.

@fernandoyang83
Copy link
Author

Please follow this guide to resolve manually: #27 (comment) A fix for this will be posted soon.

Thank you very much, it worked

@contentis
Copy link
Collaborator

Closing duplicates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants