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
OpenDAS
diffusers
Commits
f539497a
Unverified
Commit
f539497a
authored
Mar 07, 2024
by
bimsarapathiraja
Committed by
GitHub
Mar 07, 2024
Browse files
Remove the line. Using it create wrong output (#7075)
Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
39dfb7ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
docs/source/en/using-diffusers/write_own_pipeline.md
docs/source/en/using-diffusers/write_own_pipeline.md
+0
-1
No files found.
docs/source/en/using-diffusers/write_own_pipeline.md
View file @
f539497a
...
...
@@ -273,7 +273,6 @@ Lastly, convert the image to a `PIL.Image` to see your generated image!
```
py
>>>
image
=
(
image
/
2
+
0.5
).
clamp
(
0
,
1
).
squeeze
()
>>>
image
=
(
image
.
permute
(
1
,
2
,
0
)
*
255
).
to
(
torch
.
uint8
).
cpu
().
numpy
()
>>>
image
=
(
image
*
255
).
round
().
astype
(
"uint8"
)
>>>
image
=
Image
.
fromarray
(
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