mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-07-21 21:01:24 +08:00
text
This commit is contained in:
parent
472309ff2d
commit
179873abf5
@ -911,7 +911,7 @@ def fix_png_transparency(image: Image.Image):
|
||||
return image
|
||||
|
||||
|
||||
def save_video(p, frames: list[np.ndarray], fps: int = 16, *, basename: str = "", info: str = "", audio_copy: os.PathLike = None) -> str:
|
||||
def save_video(p, frames: list[np.ndarray], fps: int = 16, *, basename: str = "", info: str = None, audio_copy: os.PathLike = None) -> str:
|
||||
height, width, channels = frames[0].shape
|
||||
assert channels == 3, "Frames must be in (H, W, 3) RGB format"
|
||||
|
||||
@ -1002,4 +1002,9 @@ def save_video(p, frames: list[np.ndarray], fps: int = 16, *, basename: str = ""
|
||||
proc.stdin.close()
|
||||
proc.wait()
|
||||
|
||||
if opts.save_txt and info is not None:
|
||||
txt_fullfn = os.path.join(folder, f"{file_decoration}.txt")
|
||||
with open(txt_fullfn, "w", encoding="utf8") as file:
|
||||
file.write(f"{info}\n")
|
||||
|
||||
return fullfn
|
||||
|
||||
Loading…
Reference in New Issue
Block a user