mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-13 18:02:31 +03:00
stop generating frames when total_frames reached
This commit is contained in:
parent
df80e5661b
commit
d4ecedfb33
@ -1585,6 +1585,8 @@ def txt2vid(
|
||||
|
||||
st.session_state["frame_duration"] = duration
|
||||
st.session_state["frame_speed"] = speed
|
||||
if frame_index+1 > total_frames:
|
||||
break
|
||||
|
||||
init1 = init2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user