Skip to content

Commit

Permalink
[LoRA] fix dora test to catch the warning properly. (#9627)
Browse files Browse the repository at this point in the history
fix dora test.
  • Loading branch information
sayakpaul authored Oct 10, 2024
1 parent 07bd2fa commit e16fd93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lora/test_lora_layers_sdxl.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,12 +619,12 @@ def test_integration_logits_multi_adapter(self):
@nightly
def test_integration_logits_for_dora_lora(self):
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.setLevel(30)
with CaptureLogger(logger) as cap_logger:
pipeline.load_lora_weights("hf-internal-testing/dora-trained-on-kohya")
pipeline.enable_model_cpu_offload()
images = pipeline(
"photo of ohwx dog",
num_inference_steps=10,
Expand Down

0 comments on commit e16fd93

Please sign in to comment.