Unverified Commit cf03f5b7 authored by Steven Liu's avatar Steven Liu Committed by GitHub
Browse files

[docs] Minor fixes (#5369)

minor fixes
parent 5313aa62
...@@ -131,7 +131,7 @@ init_image = Image.open(BytesIO(response.content)).convert("RGB") ...@@ -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" prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
# pass prompt and image to pipeline # 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 image
``` ```
......
...@@ -176,7 +176,7 @@ image = pipeline(prompt=prompt, image=init_image, mask_image=mask_image, generat ...@@ -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. 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. `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 ...@@ -217,7 +217,7 @@ image = pipeline(prompt=prompt, image=init_image, mask_image=mask_image, strengt
</div> </div>
</div> </div>
## Guidance scale ### Guidance scale
`guidance_scale` affects how aligned the text prompt and generated image are. `guidance_scale` affects how aligned the text prompt and generated image are.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment