NVIDIA / TensorRT

NVIDIA® TensorRT™ is an SDK for high-performance deep learning inference on NVIDIA GPUs. This repository contains the open source components of TensorRT.
https://developer.nvidia.com/tensorrt
Apache License 2.0
10.85k stars 2.14k forks source link

TypeError: pybind11::init(): factory function returned nullptr #2913

Open lianshushu opened 1 year ago

lianshushu commented 1 year ago

error happen!

[I] Initializing StableDiffusion txt2img demo using TensorRT GPU : 8 Building TensorRT engine for onnx/clip.opt.onnx: engine/clip.plan [W] Unable to determine GPU memory usage [W] CUDA initialization failure with error: 35. Please check your CUDA installation: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

environment: cuda : 11.0 tensorrt : 8.6.0

the other torch proj can run successfully.

zerollzeng commented 1 year ago

[W] CUDA initialization failure with error: 35. Please check your CUDA installation: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

Something wrong with your CUDA installation.

lianshushu commented 1 year ago

but I can run other torch project. ther error message above is :

loader.py:97 in │ │ call_impl │ │ │ │ 94 │ │ Returns: │ │ 95 │ │ │ (trt.Builder, trt.INetworkDefinition): The builder and empty network. │ │ 96 │ │ """ │ │ ❱ 97 │ │ with util.FreeOnException([trt.Builder(trt_util.get_trt_logger())]) as (builder, │ │ 98 │ │ │ network_flags = 0 │ │ 99 │ │ │ if self.explicit_batch: │ │ 100 │ │ │ │ network_flags |= 1 << int(trt.NetworkDefinitionCreationFlag.EXPLICIT_BAT

TypeError: pybind11::init(): factory function returned nullptr

huibing99 commented 1 year ago

Hello,I also encountered the same problem. Have you solved it? @lianshushu

wanglong001 commented 1 year ago

+1, Have you solved it? @huibing99 @lianshushu

 /usr/bin/zsh trt-fp32/reproduce_conversion.sh
[W] Unable to determine GPU memory usage
[W] CUDA initialization failure with error: 35. Please check your CUDA installation:  http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
Phoenix8215 commented 7 months ago

+10086,hey brothers,how to solve it?😅

LittleNoob2333 commented 4 months ago

+10086,hey brothers,how to solve it?😅

me,too