continue-revolution / sd-webui-animatediff

AnimateDiff for AUTOMATIC1111 Stable Diffusion WebUI
Other
3.11k stars 258 forks source link

[Bug]: Save very slow for medium resolution images in txt2img #428

Open marcsyp opened 9 months ago

marcsyp commented 9 months ago

Is there an existing issue for this?

Have you read FAQ on README?

What happened?

A simple 16 frame animation with sd15_v2 motion module at 640x960 takes 1:22 to generate frames but total time with saving is 4:04 (2.5m to save). Is this expected? Any way to optimize? I'm on webui 1.6.0 and an old torch 1.13.1 - cu117

Steps to reproduce the problem

Create an animation at 640x960

What should have happened?

Save a little faster? I would expect 20s or so, like with a smaller animation

Commit where the problem happens

webui: extension: yep

What browsers do you use to access the UI ?

No response

Command Line Arguments

some stuff

Console logs

nothing special

Additional information

No response

zappityzap commented 9 months ago

What output formats and settings? There are additional settings for GIF, MP4 and WebP that could affect saving time. Frame interpolation also takes time in the saving process if it's enabled.

Saving GIF and MP4 for 640x960 with 16 frames took 10 seconds for me.

marcsyp commented 9 months ago

MP4 + PNG, no frame interpolation.

marcsyp commented 9 months ago

Also, I'm on a 3080 Ti w/ 12GB Vram

zappityzap commented 9 months ago

The long save time you experienced is not expected, and I'm not able to reproduce it. Your report lacks details to aid in troubleshooting. All I can suggest at this point is to update to 1.7.0 and also try to reproduce the problem on another computer.