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
66a7160f
Unverified
Commit
66a7160f
authored
Feb 23, 2024
by
bimsarapathiraja
Committed by
GitHub
Feb 23, 2024
Browse files
Change images to image. The variable images is not used anywhere (#7074)
parent
f05ee56b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/en/using-diffusers/write_own_pipeline.md
docs/source/en/using-diffusers/write_own_pipeline.md
+1
-1
No files found.
docs/source/en/using-diffusers/write_own_pipeline.md
View file @
66a7160f
...
@@ -273,7 +273,7 @@ Lastly, convert the image to a `PIL.Image` to see your generated image!
...
@@ -273,7 +273,7 @@ Lastly, convert the image to a `PIL.Image` to see your generated image!
```
py
```
py
>>>
image
=
(
image
/
2
+
0.5
).
clamp
(
0
,
1
).
squeeze
()
>>>
image
=
(
image
/
2
+
0.5
).
clamp
(
0
,
1
).
squeeze
()
>>>
image
=
(
image
.
permute
(
1
,
2
,
0
)
*
255
).
to
(
torch
.
uint8
).
cpu
().
numpy
()
>>>
image
=
(
image
.
permute
(
1
,
2
,
0
)
*
255
).
to
(
torch
.
uint8
).
cpu
().
numpy
()
>>>
image
s
=
(
image
*
255
).
round
().
astype
(
"uint8"
)
>>>
image
=
(
image
*
255
).
round
().
astype
(
"uint8"
)
>>>
image
=
Image
.
fromarray
(
image
)
>>>
image
=
Image
.
fromarray
(
image
)
>>>
image
>>>
image
```
```
...
...
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