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
8bdf4236
Unverified
Commit
8bdf4236
authored
Mar 28, 2023
by
junhsss
Committed by
GitHub
Mar 28, 2023
Browse files
fix KarrasVePipeline bug (#2828)
parent
585f621a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/stochastic_karras_ve/pipeline_stochastic_karras_ve.py
...nes/stochastic_karras_ve/pipeline_stochastic_karras_ve.py
+1
-1
No files found.
src/diffusers/pipelines/stochastic_karras_ve/pipeline_stochastic_karras_ve.py
View file @
8bdf4236
...
...
@@ -120,7 +120,7 @@ class KarrasVePipeline(DiffusionPipeline):
sample
=
(
sample
/
2
+
0.5
).
clamp
(
0
,
1
)
image
=
sample
.
cpu
().
permute
(
0
,
2
,
3
,
1
).
numpy
()
if
output_type
==
"pil"
:
image
=
self
.
numpy_to_pil
(
sampl
e
)
image
=
self
.
numpy_to_pil
(
imag
e
)
if
not
return_dict
:
return
(
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