1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

[docs] Minor fixes (#5369)

minor fixes
This commit is contained in:
Steven Liu
2023-10-11 17:18:29 -07:00
committed by GitHub
parent 5313aa6231
commit cf03f5b718
2 changed files with 3 additions and 3 deletions

View File

@@ -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
```

View File

@@ -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
</div>
</div>
## Guidance scale
### Guidance scale
`guidance_scale` affects how aligned the text prompt and generated image are.