 num_inference_steps=50,
    generator=generator,
).images
images[0]  input image  adapted image
</hfoption>
<hfoption id="AnimateDiff">

	  Copied # animate diff + ip adapter
import torch
from diffusers import MotionAdapter, AnimateDiffPipeline, DDIMScheduler
from diffusers.utils import export_to_gif, load_image

# Load the motion adapter
adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-2", torch_dtype=torch.floa