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

SD Solver 2.0 failing when targeting a custom LoRA #128

Open
adalast opened this issue Sep 15, 2023 · 0 comments
Open

SD Solver 2.0 failing when targeting a custom LoRA #128

adalast opened this issue Sep 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@adalast
Copy link

adalast commented Sep 15, 2023

I have been training some custom LoRAs to use in a tool I am trying to design and when I load the LoRA it fails. I have been running them with A1111 just fine, but I'm not sure if I need to do something special for the diffusers library.

Invalid source /obj/geo1/sd_solver1/solver
Error: Python error: Traceback (most recent call last):
File "", line 52, in
File "C:\Users/User/MLOPs/scripts/python\sdpipeline\image_solve.py", line 50, in run
unet.load_attn_procs(
File "C:\Users\User\MLOPs\data\dependencies\python\diffusers\loaders.py", line 364, in load_attn_procs
attn_processor = getattr(attn_processor, sub_key)
File "C:\Users\User\MLOPs\data\dependencies\python\diffusers\models\modeling_utils.py", line 186, in getattr
return super().getattr(name)
File "C:\Users\User\MLOPs\data\dependencies\python\torch\nn\modules\module.py", line 1614, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'UNet2DConditionModel' object has no attribute ''
.

@Ambrosiussen Ambrosiussen added the bug Something isn't working label Feb 11, 2024
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