continue-revolution / sd-webui-animatediff

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

[Bug]: When using API to generate videos it saves the video in 2 places #429

Open tapistefan opened 9 months ago

tapistefan commented 9 months ago

Is there an existing issue for this?

Have you read FAQ on README?

What happened?

I am using AnimateDiff via automatic1111 API and when I generate video and get base64 string that i save to .mp4 in my custom output directory video also saves in default save path (stable-diffusion-webui\outputs\txt2img-images\AnimateDiff\2024-02-14) I use only reactor for faceswap along AnimateDiff Is there a way to prevent this and make it not save video anyway but just return base64 so I can save it only where i want.

Steps to reproduce the problem

To reproduce the problem you would need to try to use AnimateDiff with automatic111 API and save geenrated video from buffer that you get as a response from API.

What should have happened?

Normal behavior is to get API response and not save video in default location. (Like it functions for images generated without AnimateDiff enabled)

Commit where the problem happens

extension: https://github.com/continue-revolution/sd-webui-animatediff/commit/2573b2b51369e65d92b80a57874b41fd7344bae9

What browsers do you use to access the UI ?

No response

Command Line Arguments

set COMMANDLINE_ARGS=--xformers --api --nowebui --no-half-vae

Console logs

Console log is not relevant to this bug

Additional information

No response