From 45e1e9360ad163cedcd939a86af1103b35a927ad Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Wed, 11 Oct 2023 10:02:11 -0700 Subject: [PATCH] minor fixes --- docs/source/en/using-diffusers/img2img.md | 2 +- docs/source/en/using-diffusers/inpaint.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/en/using-diffusers/img2img.md b/docs/source/en/using-diffusers/img2img.md index c0bf4dc52153..a1a4733a514c 100644 --- a/docs/source/en/using-diffusers/img2img.md +++ b/docs/source/en/using-diffusers/img2img.md @@ -131,7 +131,7 @@ init_image = Image.open(BytesIO(response.content)).convert("RGB") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" # pass prompt and image to pipeline -image = pipeline(prompt, image=init_image, strength=).images[0] +image = pipeline(prompt, image=init_image, strength=0.5).images[0] image ``` diff --git a/docs/source/en/using-diffusers/inpaint.md b/docs/source/en/using-diffusers/inpaint.md index 4a691a087fff..730cddf971a4 100644 --- a/docs/source/en/using-diffusers/inpaint.md +++ b/docs/source/en/using-diffusers/inpaint.md @@ -176,7 +176,7 @@ image = pipeline(prompt=prompt, image=init_image, mask_image=mask_image, generat Image features - like quality and "creativity" - are dependent on pipeline parameters. Knowing what these parameters do is important for getting the results you want. Let's take a look at the most important parameters and see how changing them affects the output. -## Strength +### Strength `strength` is a measure of how much noise is added to the base image, which influences how similar the output is to the base image. @@ -217,7 +217,7 @@ image = pipeline(prompt=prompt, image=init_image, mask_image=mask_image, strengt -## Guidance scale +### Guidance scale `guidance_scale` affects how aligned the text prompt and generated image are.