cumulo-autumn / StreamDiffusion

StreamDiffusion: A Pipeline-Level Solution for Real-Time Interactive Generation
Apache License 2.0
9.52k stars 682 forks source link

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

Open hhwang98 opened 9 months ago

hhwang98 commented 9 months ago

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.

dotsimulate commented 9 months ago

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.

hhwang98 commented 9 months ago

@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

rqtqp commented 8 months ago

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

Maseu1 commented 8 months ago

@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

rqtqp commented 8 months ago

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.

Maseu1 commented 8 months ago

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