TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

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

Open lianshushu opened this issue 2 years ago • 6 comments

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.

lianshushu avatar Apr 28 '23 01:04 lianshushu

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

zerollzeng avatar Apr 28 '23 15:04 zerollzeng

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

lianshushu avatar May 04 '23 02:05 lianshushu

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

zhbbob avatar Jun 27 '23 02:06 zhbbob

+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

wanglong001 avatar Nov 21 '23 09:11 wanglong001

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

Phoenix8215 avatar Apr 12 '24 04:04 Phoenix8215

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

me,too

wly-115 avatar Jul 20 '24 14:07 wly-115