d_image = pipe(
   prompt,
   image=image,
   num_inference_steps=num_inference_steps,
   image_guidance_scale=image_guidance_scale,
   guidance_scale=guidance_scale,
   generator=generator,
).images[0]
edited_image.save("edited_image.png")
An example model repo obtained using this training script can be found
here - sayakpaul/instruct-pix2pix.
We encourage you to play with the following three parameters to control
speed and quality during perf