INNER CODE UNIT · Python
check_animatediff_lcm
Woolverine94/biniou · ressources/animatediff_lcm.py:58
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,
guidance_scale_animatediff_lcm,
seed_animatediff_lcm,
num_frames_animatediff_lcm,
num_fps_animatediff_lcm,