generator = torch.Generator(device="cpu").manual_seed(0)
image = pipeline(
prompt,
image=init_image,
strength=0.8,
guidance_scale=guidance_scale,
pag_scale=pag_scale,
generator=generator).images[0]
```  
</hfoption>
<hfoption id="Inpainting">  
```py
from diffusers import AutoPipelineForInpainting
from diffusers.utils import load_image
import torch