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
cc819010
"git@developer.sourcefind.cn:OpenDAS/ktransformers.git" did not exist on "a148da2cfe4706745147de1e315972a19408f6ec"
Commit
cc819010
authored
Jun 10, 2022
by
patil-suraj
Browse files
process image
parent
7ac909d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
models/vision/latent_diffusion/modeling_latent_diffusion.py
models/vision/latent_diffusion/modeling_latent_diffusion.py
+1
-0
No files found.
models/vision/latent_diffusion/modeling_latent_diffusion.py
View file @
cc819010
...
@@ -961,5 +961,6 @@ class LatentDiffusion(DiffusionPipeline):
...
@@ -961,5 +961,6 @@ class LatentDiffusion(DiffusionPipeline):
image
=
1
/
0.18215
*
image
image
=
1
/
0.18215
*
image
image
=
self
.
vqvae
.
decode
(
image
)
image
=
self
.
vqvae
.
decode
(
image
)
image
=
torch
.
clamp
((
image
+
1.0
)
/
2.0
,
min
=
0.0
,
max
=
1.0
)
image
=
torch
.
clamp
((
image
+
1.0
)
/
2.0
,
min
=
0.0
,
max
=
1.0
)
image
=
255.
*
image
return
image
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