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

can't use convert #259

Open
lhd000 opened this issue Jan 31, 2025 · 1 comment
Open

can't use convert #259

lhd000 opened this issue Jan 31, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@lhd000
Copy link

lhd000 commented Jan 31, 2025

Describe the bug

convert_ckpt_to_diffusers(model_path, output_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'convert_ckpt_to_diffusers' is not defined

Reproduction

convert_ckpt_to_diffusers(model_path, output_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'convert_ckpt_to_diffusers' is not defined

Logs

System Info

convert_ckpt_to_diffusers(model_path, output_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'convert_ckpt_to_diffusers' is not defined

@lhd000 lhd000 added the bug Something isn't working label Jan 31, 2025
@sam-ejma081
Copy link

Hello, we tried to solve the issue.

This is what we did:

Add a new function convert_ckpt_to_diffusers that wraps the existing functionality and can be easily called by users. This addresses the NameError issue reported in the GitHub bug.

You can review changes in this commit: sam-ejma081@3a717d5.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants