prompt = "a tiger sitting on a park bench"

image = pipe(
prompt=prompt,
image=init_image,
mask_image=mask_image,
num_inference_steps=8,
guidance_scale=0,
eta=0.3,
strength=0.99,  # make sure to use `strength` below 1.0
generator=torch.Generator(device=device).manual_seed(0),
).images[0]

grid_image = make_image_grid([init_image, mask_image, image], rows=1, cols=3)
```  
![](https://github.com/jabir-zheng/TCD/raw/main/assets/inpainting_tcd.png)  
</hfoption>
</hfoptions>