continue-revolution / sd-webui-animatediff

AnimateDiff for AUTOMATIC1111 Stable Diffusion WebUI
Other
2.91k stars 246 forks source link

[Bug]: API GIF Output #517

Open F0xbite opened 1 month ago

F0xbite commented 1 month ago

Is there an existing issue for this?

Have you read FAQ on README?

What happened?

I upgraded from a1111 1.7 with older AnimateDiff to 1.9 A1111 with latest AnimateDiff. In the old version, the gif is created in the output folder, whether generated from API or WebUI. Now only WebUI creates a GIF.

Is this expected behavior? I see the API response contains the frames, but not the gif.

Of course, I can make a gif myself from the frames, but it seems strange to set FPS in the payload if you aren't going to get a gif output.

Just wanted to ask. Thanks in advance.

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

Gif saved to output folder when generated from API

Commit where the problem happens

webui: extension: latest

What browsers do you use to access the UI ?

No response

Command Line Arguments

n/a

Console logs

n/a

Additional information

No response

zappityzap commented 1 month ago

Can you provide an example API request, and the console output from processing it?

From what I can see in the code, the videos should be returned in the API response as base64 encoded data along with the frames. That happens after the videos are saved locally. https://github.com/continue-revolution/sd-webui-animatediff/blob/44d2f992ba495fd428b8be37bdfea0b5b62cc718/scripts/animatediff_output.py#L50

zappityzap commented 4 weeks ago

I was unable to reproduce this with a test API call. Please share the JSON payload and console output if you still have this issue, thanks.