UniAnimate icon indicating copy to clipboard operation
UniAnimate copied to clipboard

Any idea to speedup?

Open adf1178 opened this issue 1 year ago • 4 comments

Thanks for your interesting work! I have tried to infer a 75 frames video on A100 in 512*768, which will take about 3mins. I also tried to use more cards, however, it only generates more videos :( . Do you have some ideas to speedup?

adf1178 avatar Jun 25 '24 07:06 adf1178

Hi, multi-machine distributed acceleration is not deployed in the code. To speed things up, you can try changing the value of context_batch_size = 1 from 1 to 8 or some other value greater than 1, but this requires to change the shape of model_kwargs_new by yourself. Thanks.

wangxiang1230 avatar Jun 25 '24 15:06 wangxiang1230

Hi, we have upload the code for multiple segments parallel denoising to accelerate long video inference. Accelerated inference for multi-GPUs parallelism is not currently supported, and we welcome developers to support multi-GPUs parallelism improvements, which we will incorporate into our code. Thanks for your contribution.

wangxiang1230 avatar Jun 26 '24 03:06 wangxiang1230

Thank you for your reply and effort! I will try it

adf1178 avatar Jun 26 '24 03:06 adf1178

@wangxiang1230 is this the change that you released on Jun 26? How much faster will context_batch_size = 8 be?

ansonkao avatar Aug 22 '24 18:08 ansonkao