generator = torch.Generator(device="cpu").manual_seed(seed)

image = pipeline(
prompt,
negative_prompt=negative_prompt,
image=image,
mask_image=mask,
guidance_scale=10.0,
strength=0.8,
num_inference_steps=30,
generator=generator,
).images[0]

return image

prompt = "high quality photo of nike air jordans on a basketball court, highly detailed"
negative_prompt = ""