Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: API GIF Output #517

Open
2 tasks done
F0xbite opened this issue May 2, 2024 · 2 comments
Open
2 tasks done

[Bug]: API GIF Output #517

F0xbite opened this issue May 2, 2024 · 2 comments

Comments

@F0xbite
Copy link

F0xbite commented May 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Have you read FAQ on README?

  • I have updated WebUI and this extension to the latest version

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
Copy link
Collaborator

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.

res.images = video_paths if not p.is_api else (self._encode_video_to_b64(video_paths) + (frame_list if 'Frame' in params.format else []))

@zappityzap
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants