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

'int' object has no attribute 'startswith' What's the problem? #25

Closed
oldboss918 opened this issue Mar 25, 2023 · 0 comments
Closed

'int' object has no attribute 'startswith' What's the problem? #25

oldboss918 opened this issue Mar 25, 2023 · 0 comments

Comments

@oldboss918
Copy link

LoRA Block weight :meruTheSuccubus_v116000: [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
LoRA Block weight :koreanDollLikeness_v15: [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 1.0, 1.0, 0.2, 0.0, 0.0, 0.0, 0.0, 0.0]
Error running process: D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\extensions\sd-webui-lora-block-weight\scripts\lora_block_weight.py
Traceback (most recent call last):
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\modules\scripts.py", line 409, in process
script.process(p, *script_args)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\extensions\sd-webui-lora-block-weight\scripts\lora_block_weight.py", line 217, in process
loradealer(p,lratios)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\extensions\sd-webui-lora-block-weight\scripts\lora_block_weight.py", line 413, in loradealer
if len(lorars) > 0: load_loras_blocks(lorans,lorars,multiple)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\extensions\sd-webui-lora-block-weight\scripts\lora_block_weight.py", line 783, in load_loras_blocks
locallora = load_lora(name, lora_on_disk.filename,lwei[i])
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\extensions\sd-webui-lora-block-weight\scripts\lora_block_weight.py", line 611, in load_lora
sd = sd_models.read_state_dict(filename)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\modules\sd_models.py", line 248, in read_state_dict
sd = get_state_dict_from_checkpoint(pl_sd)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\modules\sd_models.py", line 202, in get_state_dict_from_checkpoint
new_key = transform_checkpoint_dict_key(k)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\modules\sd_models.py", line 190, in transform_checkpoint_dict_key
if k.startswith(text):
AttributeError: 'int' object has no attribute 'startswith'

activating extra network lora with arguments [<modules.extra_networks.ExtraNetworkParams object at 0x000002B0FEDA2E30>, <modules.extra_networks.ExtraNetworkParams object at 0x000002B0FEDA2F80>]: AttributeError
Traceback (most recent call last):
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\modules\extra_networks.py", line 75, in activate
extra_network.activate(p, extra_network_args)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\extensions-builtin\Lora\extra_networks_lora.py", line 23, in activate
lora.load_loras(names, multipliers)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\extensions-builtin\Lora\lora.py", line 170, in load_loras
lora = load_lora(name, lora_on_disk.filename)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\extensions\a1111-sd-webui-locon\scripts\main.py", line 273, in load_lora
sd = sd_models.read_state_dict(filename)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\modules\sd_models.py", line 248, in read_state_dict
sd = get_state_dict_from_checkpoint(pl_sd)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\modules\sd_models.py", line 202, in get_state_dict_from_checkpoint
new_key = transform_checkpoint_dict_key(k)
File "D:\WORK\ai\stable-diffusion-webui\stable-diffusion-webui_23-02-27\modules\sd_models.py", line 190, in transform_checkpoint_dict_key
if k.startswith(text):
AttributeError: 'int' object has no attribute 'startswith'

@oldboss918 oldboss918 changed the title 'int' object has no attribute 'startswith' 'int' object has no attribute 'startswith' What's the problem? Mar 25, 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

No branches or pull requests

1 participant