image = pipe(
prompt=prompt,
num_inference_steps=4,
guidance_scale=0,
eta=0.3,
generator=torch.Generator(device=device).manual_seed(0),
).images[0]
```  
![](https://github.com/jabir-zheng/TCD/raw/main/assets/demo_image.png)  
</hfoption>  
<hfoption id="inpainting">  
```python
import torch
from diffusers import AutoPipelineForInpainting, TCDScheduler
from diffusers.utils import load_image, make_image_grid