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 weight_sd in lora_interrogator #423

Closed
wants to merge 1 commit into from

Conversation

heyalexchoi
Copy link

Fixes error:


loading SD model: /home/alexchoi/checkpoints/abc.safetensors
loading u-net: <All keys matched successfully>
loading vae: <All keys matched successfully>
loading text encoder: <All keys matched successfully>
loading LoRA: /home/alexchoi/stable-diffusion-webui/models/Lora/abc-000100.safetensors
create LoRA network from weights
create LoRA for Text Encoder: 72 modules.
create LoRA for U-Net: 192 modules.
Traceback (most recent call last):
  File "/home/alexchoi/kohya-sd-scripts-clone/./networks/lora_interrogator.py", line 128, in <module>
    interrogate(args)
  File "/home/alexchoi/kohya-sd-scripts-clone/./networks/lora_interrogator.py", line 28, in interrogate
    for key in network.weights_sd.keys():
AttributeError: 'tuple' object has no attribute 'weights_sd'
Traceback (most recent call last):
  File "/home/alexchoi/anaconda3/envs/sd-scripts/bin/accelerate", line 8, in <module>
    sys.exit(main())
  File "/home/alexchoi/anaconda3/envs/sd-scripts/lib/python3.10/site-packages/accelerate/commands/accelerate_cli.py", line 45, in main
    args.func(args)
  File "/home/alexchoi/anaconda3/envs/sd-scripts/lib/python3.10/site-packages/accelerate/commands/launch.py", line 1104, in launch_command
    simple_launcher(args)
  File "/home/alexchoi/anaconda3/envs/sd-scripts/lib/python3.10/site-packages/accelerate/commands/launch.py", line 567, in simple_launcher
    raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/home/alexchoi/anaconda3/envs/sd-scripts/bin/python', './networks/lora_interrogator.py', '--sd_model=/home/alexchoi/checkpoints/abc.safetensors', '--model=/home/alexchoi/stable-diffusion-webui/models/Lora/abc-000100.safetensors']' returned non-zero exit status 1.

@kohya-ss
Copy link
Owner

Thank you for this! I've merged #392, this is because that PR was submitted first. I hope you understand.

@kohya-ss kohya-ss closed this Apr 19, 2023
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.

2 participants