问题描述
File "/test/SDpytrirton/TensorRT-release-8.6/demo/Diffusion/utilities.py", line 213, in build network_from_onnx_path(onnx_path,flags=[trt.OnnxParserFlag.NATIVE_INSTANCENORM]),
TypeError: func_impl() got an unexpected keyword argument 'flags'
解决
-
pip install tensorrt==8.6.1 -i https://mirrors.aliyun.com/pypi/simple/
-
pip install polygraphy -i https://pypi.python.org/simple/ -
python3 -m pip install --upgrade polygraphy
在尝试使用TensorRT的ONNX解析器时遇到了TypeError,问题出在函数func_impl()不接受flags这个关键字参数。为了解决这个问题,更新了TensorRT、Polygraphy等库到最新版本,特别是安装了TensorRT8.6.1和Polygraphy的最新版本。
5万+

被折叠的 条评论
为什么被折叠?



