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
fb4aec0c
Commit
fb4aec0c
authored
Jan 04, 2024
by
sayakpaul
Browse files
debug
parent
63de23e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/lora/test_lora_layers_old_backend.py
tests/lora/test_lora_layers_old_backend.py
+1
-1
No files found.
tests/lora/test_lora_layers_old_backend.py
View file @
fb4aec0c
...
@@ -1446,7 +1446,7 @@ class SDXLLoraLoaderMixinTests(unittest.TestCase):
...
@@ -1446,7 +1446,7 @@ class SDXLLoraLoaderMixinTests(unittest.TestCase):
with
tempfile
.
TemporaryDirectory
()
as
tmpdirname
:
with
tempfile
.
TemporaryDirectory
()
as
tmpdirname
:
sd_pipe
.
save_pretrained
(
tmpdirname
)
sd_pipe
.
save_pretrained
(
tmpdirname
)
sd_pipe_loaded
=
StableDiffusionXLPipeline
.
from_pretrained
(
tmpdirname
)
sd_pipe_loaded
=
StableDiffusionXLPipeline
.
from_pretrained
(
tmpdirname
)
.
to
(
torch_device
)
loaded_lora_images
=
sd_pipe_loaded
(
**
pipeline_inputs
,
generator
=
torch
.
manual_seed
(
0
)).
images
loaded_lora_images
=
sd_pipe_loaded
(
**
pipeline_inputs
,
generator
=
torch
.
manual_seed
(
0
)).
images
loaded_lora_image_slice
=
loaded_lora_images
[
0
,
-
3
:,
-
3
:,
-
1
]
loaded_lora_image_slice
=
loaded_lora_images
[
0
,
-
3
:,
-
3
:,
-
1
]
...
...
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