kohya-ss / sd-webui-additional-networks

GNU Affero General Public License v3.0
1.78k stars 296 forks source link

sdxl lora run sd-webui-additional-networks #232

Open rookiexjl opened 11 months ago

rookiexjl commented 11 months ago

Error running process_batch: /root/autodl-tmp/stable-diffusion-webui/extensions/sd-webui-additional-networks/scripts/additional_networks.py Traceback (most recent call last): File "/root/autodl-tmp/stable-diffusion-webui/modules/scripts.py", line 643, in process_batch script.process_batch(p, script_args, kwargs) File "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-webui-additional-networks/scripts/additional_networks.py", line 244, in process_batch network, info = lora_compvis.create_network_and_apply_compvis( File "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-webui-additional-networks/scripts/lora_compvis.py", line 153, in create_network_and_apply_compvis network = LoRANetworkCompvis(text_encoder, unet, multiplier_tenc, multiplier_unet, modules_dim, modules_alpha) File "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-webui-additional-networks/scripts/lora_compvis.py", line 341, in init comp_vis_lora_name = LoRANetworkCompvis.convert_diffusers_name_to_compvis(self.v2, du_lora_name) File "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-webui-additional-networks/scripts/lora_compvis.py", line 302, in convert_diffusers_name_to_compvis assert cv_name is not None, f"conversion failed: {du_name}. the model may not be trained by sd-scripts." AssertionError: conversion failed: lora_te1_text_model_encoder_layers_0_mlp_fc1. the model may not be trained by sd-scripts.

kalle07 commented 11 months ago

that error i get if i star automatc1111 ............ D:\stable-diffusion\webui\extensions\sd-webui-additional-networks\scripts\metadata_editor.py:399: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. with gr.Row().style(equal_height=False): D:\stable-diffusion\webui\extensions\sd-webui-additional-networks\scripts\metadata_editor.py:521: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. cover_image = gr.Image( Running on local URL: http://127.0.0.1:7864 .............

and this if i enable network and chose 2 loras in the list

............. LoRA weight_unet: 1, weight_tenc: 1, model: kalle07_010_cosineiter2 000012_jugger_20epoches_adafactor_new2_32_16(71f40b64e0e4) dimension: {32}, alpha: {16.0}, multiplier_unet: 1, multiplier_tenc: 1 Error running process_batch: D:\stable-diffusion\webui\extensions\sd-webui-additional-networks\scripts\additional_networks.py Traceback (most recent call last): File "D:\stable-diffusion\webui\modules\scripts.py", line 643, in process_batch script.process_batch(p, script_args, kwargs) File "D:\stable-diffusion\webui\extensions\sd-webui-additional-networks\scripts\additional_networks.py", line 244, in process_batch network, info = lora_compvis.create_network_and_apply_compvis( File "D:\stable-diffusion\webui\extensions\sd-webui-additional-networks\scripts\lora_compvis.py", line 153, in create_network_and_apply_compvis network = LoRANetworkCompvis(text_encoder, unet, multiplier_tenc, multiplier_unet, modules_dim, modules_alpha) File "D:\stable-diffusion\webui\extensions\sd-webui-additional-networks\scripts\lora_compvis.py", line 341, in init comp_vis_lora_name = LoRANetworkCompvis.convert_diffusers_name_to_compvis(self.v2, du_lora_name) File "D:\stable-diffusion\webui\extensions\sd-webui-additional-networks\scripts\lora_compvis.py", line 302, in convert_diffusers_name_to_compvis assert cv_name is not None, f"conversion failed: {du_name}. the model may not be trained by sd-scripts." AssertionError: conversion failed: lora_te1_text_model_encoder_layers_0_mlp_fc1. the model may not be trained by sd-scripts.


.....................