Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
81715661
"tests/vscode:/vscode.git/clone" did not exist on "0a56d652230a68663e8855380df37a990b8a1a06"
Unverified
Commit
81715661
authored
Nov 11, 2022
by
ruanrz
Committed by
GitHub
Nov 11, 2022
Browse files
[Docs] improve img2img example (#1193)
update img2img example
parent
045157a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/using-diffusers/img2img.mdx
docs/source/using-diffusers/img2img.mdx
+1
-1
No files found.
docs/source/using-diffusers/img2img.mdx
View file @
81715661
...
...
@@ -33,7 +33,7 @@ url = "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/st
response = requests.get(url)
init_image = Image.open(BytesIO(response.content)).convert("RGB")
init_image
= init_image.resize
((768,
512
))
init_image
.thumbnail
((768,
768
))
prompt = "A fantasy landscape, trending on artstation"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment