StreamDiffusion icon indicating copy to clipboard operation
StreamDiffusion copied to clipboard

AttributeError: module 'polygraphy.backend.trt.util' has no attribute 'get_bindings_per_profile'

Open hhwang98 opened this issue 2 years ago • 6 comments

when i use tensorrt , like stream = accelerate_with_tensorrt( stream, "engines", max_batch_size=2, ) or set acceleration: Literal["none", "xformers", "tensorrt"] = "tensorrt", in examples/optimal-performance/single.py

i fix some bug mentioned in #19 ,finally,i get bug:AttributeError: module 'polygraphy.backend.trt.util' has no attribute 'get_bindings_per_profile' from https://docs.nvidia.com/deeplearning/tensorrt/polygraphy/docs/_modules/polygraphy/backend/trt/util.html, it seem polygraphy.backend.trt.util has no attribute 'get_bindings_per_profile.

hhwang98 avatar Dec 29 '23 09:12 hhwang98

Try installing polygraphy 0.47.1 And/or install the reqs for the new realtime-img2img demo

I believe one/two of those solved it for me.

dotsimulate avatar Jan 02 '24 20:01 dotsimulate

@dotsimulate Thank you very much. When i change polygraphy to 0.47.1, i fix this bug , but i got another bug like this: image

hhwang98 avatar Jan 05 '24 03:01 hhwang98

Try installing polygraphy 0.47.1 And/or install the reqs for the new realtime-img2img demo

I believe one/two of those solved it for me.

I have the same issue, python 3.11 when enabling tensorrt acceleration. cuda 12.3 tensorrt version: 8.6.1, polygraphy version: 0.49.0 installed

rqtqp avatar Jan 09 '24 20:01 rqtqp

@dotsimulate Thank you very much. When i change polygraphy to 0.47.1, i fix this bug , but i got another bug like this: image

how you install 0.47.1?? i can't find this version in pypi..... and another sites

Maseu1 avatar Jan 12 '24 09:01 Maseu1

how you install 0.47.1?? i can't find this version in pypi..... and another sites

python -m streamdiffusion.tools.install-tensorrt

try this.

rqtqp avatar Jan 12 '24 10:01 rqtqp

how you install 0.47.1?? i can't find this version in pypi..... and another sites

python -m streamdiffusion.tools.install-tensorrt

try this.

no, it didn't help, I tried reinstalling

Maseu1 avatar Jan 12 '24 10:01 Maseu1