Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AttributeError in train_lcm_distill_lora_sdxl_wds.py #7923

Merged

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
8 checks passed
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.

None yet

3 participants