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
e16fd93d
Unverified
Commit
e16fd93d
authored
Oct 10, 2024
by
Sayak Paul
Committed by
GitHub
Oct 10, 2024
Browse files
[LoRA] fix dora test to catch the warning properly. (#9627)
fix dora test.
parent
07bd2fab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/lora/test_lora_layers_sdxl.py
tests/lora/test_lora_layers_sdxl.py
+2
-2
No files found.
tests/lora/test_lora_layers_sdxl.py
View file @
e16fd93d
...
@@ -619,12 +619,12 @@ class LoraSDXLIntegrationTests(unittest.TestCase):
...
@@ -619,12 +619,12 @@ class LoraSDXLIntegrationTests(unittest.TestCase):
@
nightly
@
nightly
def
test_integration_logits_for_dora_lora
(
self
):
def
test_integration_logits_for_dora_lora
(
self
):
pipeline
=
StableDiffusionXLPipeline
.
from_pretrained
(
"stabilityai/stable-diffusion-xl-base-1.0"
)
pipeline
=
StableDiffusionXLPipeline
.
from_pretrained
(
"stabilityai/stable-diffusion-xl-base-1.0"
)
pipeline
.
load_lora_weights
(
"hf-internal-testing/dora-trained-on-kohya"
)
pipeline
.
enable_model_cpu_offload
()
logger
=
logging
.
get_logger
(
"diffusers.loaders.lora_pipeline"
)
logger
=
logging
.
get_logger
(
"diffusers.loaders.lora_pipeline"
)
logger
.
setLevel
(
30
)
logger
.
setLevel
(
30
)
with
CaptureLogger
(
logger
)
as
cap_logger
:
with
CaptureLogger
(
logger
)
as
cap_logger
:
pipeline
.
load_lora_weights
(
"hf-internal-testing/dora-trained-on-kohya"
)
pipeline
.
enable_model_cpu_offload
()
images
=
pipeline
(
images
=
pipeline
(
"photo of ohwx dog"
,
"photo of ohwx dog"
,
num_inference_steps
=
10
,
num_inference_steps
=
10
,
...
...
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