grid_image = make_image_grid([ref_image, image], rows=1, cols=2)
```  
![](https://github.com/jabir-zheng/TCD/raw/main/assets/ip_adapter.png)  
</hfoption>
<hfoption id="AnimateDiff">  
[`AnimateDiff`] allows animating images using Stable Diffusion models. TCD-LoRA can substantially accelerate the process without degrading image quality. The quality of animation with TCD-LoRA and AnimateDiff has a more lucid outcome.  
```python
import torch