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
63a8ef7b
Unverified
Commit
63a8ef7b
authored
May 03, 2023
by
Mylo
Committed by
GitHub
May 03, 2023
Browse files
Fix missing variable assign in DeepFloyd-IF-II (#3315)
Fix missing variable assign lol
parent
0ccad2ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py
...ers/pipelines/deepfloyd_if/pipeline_if_superresolution.py
+1
-1
No files found.
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py
View file @
63a8ef7b
...
@@ -667,7 +667,7 @@ class IFSuperResolutionPipeline(DiffusionPipeline):
...
@@ -667,7 +667,7 @@ class IFSuperResolutionPipeline(DiffusionPipeline):
image
=
[
np
.
array
(
i
).
astype
(
np
.
float32
)
/
255.0
for
i
in
image
]
image
=
[
np
.
array
(
i
).
astype
(
np
.
float32
)
/
255.0
for
i
in
image
]
image
=
np
.
stack
(
image
,
axis
=
0
)
# to np
image
=
np
.
stack
(
image
,
axis
=
0
)
# to np
torch
.
from_numpy
(
image
.
transpose
(
0
,
3
,
1
,
2
))
image
=
torch
.
from_numpy
(
image
.
transpose
(
0
,
3
,
1
,
2
))
elif
isinstance
(
image
[
0
],
np
.
ndarray
):
elif
isinstance
(
image
[
0
],
np
.
ndarray
):
image
=
np
.
stack
(
image
,
axis
=
0
)
# to np
image
=
np
.
stack
(
image
,
axis
=
0
)
# to np
if
image
.
ndim
==
5
:
if
image
.
ndim
==
5
:
...
...
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