ader.get_data(i)) for i in range(frame_count)]
Run StableDiffusionControlNetPipeline with custom trained DreamBooth model


	Copied
import torch
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel
from diffusers.pipelines.text_to_video_synthesis.pipeline_text_to_video_zero import CrossFrameAttnProcessor

# set model id to custom model
model_id = "PAIR/text2video-zero-controlnet-canny-avatar"
controlnet = ControlNetModel.fro