Skip to content

Conversation

@jainalphin
Copy link
Contributor

What does this PR do?

This pull request fixes an AttributeError in train_lcm_distill_lora_sdxl_wds.py by updating the code to use args.pretrained_teacher_model instead of args.pretrained_model_name_or_path.

This fix resolves the error:

  File "/diffusers/examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py", line 1530, in <module>
    main(args)
  File "/diffusers/examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py", line 1361, in main
    if torch.backends.mps.is_available() or "playground" in args.pretrained_model_name_or_path:
AttributeError: 'Namespace' object has no attribute 'pretrained_model_name_or_path'. Did you mean: 'pretrained_vae_model_name_or_path'?

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline?

Who can review?

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@yiyixuxu yiyixuxu requested a review from sayakpaul May 16, 2024 04:12
Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gracias!

@sayakpaul sayakpaul merged commit 1221b28 into huggingface:main May 16, 2024
sayakpaul added a commit that referenced this pull request Dec 23, 2024
Fix conditional teacher model check in train_lcm_distill_lora_sdxl_wds.py

Co-authored-by: Sayak Paul <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants