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

Error #36

Open
Kaneda56 opened this issue May 5, 2023 · 2 comments
Open

Error #36

Kaneda56 opened this issue May 5, 2023 · 2 comments

Comments

@Kaneda56
Copy link

Kaneda56 commented May 5, 2023

My locon is not is not applied and I have the following error :

loading Lora S:\test\stable-diffusion-webui\models\Lora\Style\huachong.ckpt: AttributeError
Traceback (most recent call last):
  File "S:\test\stable-diffusion-webui\extensions\a1111-sd-webui-locon\scripts\..\..\..\extensions-builtin/Lora\lora.py", line 215, in load_loras
    lora = load_lora(name, lora_on_disk.filename)
  File "S:\test\stable-diffusion-webui\extensions\a1111-sd-webui-locon\scripts\main.py", line 289, in load_lora
    sd = sd_models.read_state_dict(filename)
  File "S:\test\stable-diffusion-webui\modules\sd_models.py", line 257, in read_state_dict
    sd = get_state_dict_from_checkpoint(pl_sd)
  File "S:\test\stable-diffusion-webui\modules\sd_models.py", line 206, in get_state_dict_from_checkpoint
    pl_sd = pl_sd.pop("state_dict", pl_sd)
AttributeError: 'NoneType' object has no attribute 'pop'

python: 3.10.6  •  torch: 2.0.0+cu118  •  xformers: 0.0.17  •  gradio: 3.28.1  •  commit: 5ab7f213  •  checkpoint: 2c3bbd47cb

@sledgehkg
Copy link

I'm getting similar:

locon load lora method
activating extra network lora with arguments [<modules.extra_networks.ExtraNetworkParams object at 0x00000203A9EEE2C0>]: NameError
Traceback (most recent call last):
File "D:\StableDiffusion\stable-diffusion-webui\modules\extra_networks.py", line 75, in activate
extra_network.activate(p, extra_network_args)
File "D:\StableDiffusion\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 23, in activate
lora.load_loras(names, multipliers)
File "D:\StableDiffusion\stable-diffusion-webui\extensions\a1111-sd-webui-locon\scripts......\extensions-builtin/Lora\lora.py", line 214, in load_loras
lora = load_lora(name, lora_on_disk.filename)
File "D:\StableDiffusion\stable-diffusion-webui\extensions\a1111-sd-webui-locon\scripts\main.py", line 376, in load_lora
for key_diffusers, weight in sd.items():
NameError: name 'sd' is not defined

I've tried reverting to an earlier version, but it makes no difference.

Can anybody help?

@neokiker
Copy link

@sledgehkg I have the same issue like you, when I go to locon page and read "This extension is basically deprecated and will not have any official update at all."

I decided to delete locon extension. Now everything works again.

Hope this help resolve your problem.

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

No branches or pull requests

3 participants