INNER CODE UNIT · Python
initiate_stop_animatediff_lcm
Woolverine94/biniou · ressources/animatediff_lcm.py:54
def initiate_stop_animatediff_lcm() :
global stop_animatediff_lcm
stop_animatediff_lcm = True
def check_animatediff_lcm(pipe, step_index, timestep, callback_kwargs) :
global stop_animatediff_lcm
if stop_animatediff_lcm == True :
print(">>>[AnimateLCM 📼 ]: generation canceled by user")
stop_animatediff_lcm = False
pipe._interrupt = True
return callback_kwargs
@metrics_decoration
def video_animatediff_lcm(
modelid_animatediff_lcm,
modelid_adapters_animatediff_lcm,
num_inference_step_animatediff_lcm,
sampler_animatediff_lcm,