ComfyUI-to-Python-Extension
ComfyUI-to-Python-Extension copied to clipboard
Doesn't work with Power Lora Loader (standard ComfyUI node from rgthree), crashes
It generates the following code that cannot be processed by black:
power_lora_loader_rgthree_631 = power_lora_loader_rgthree.load_loras(PowerLoraLoaderHeaderWidget={'type': 'PowerLoraLoaderHeaderWidget'}, lora_1={'on': False, 'lora': 'lora.safetensors', 'strength': 1.2}, lora_2={'on': False, 'lora': 'lora2.safetensors', 'strength': 0.7}, ➕ Add Lora="", model=get_value_at_index(any_switch_rgthree_633, 0), clip=get_value_at_index(dualcliploader_11, 0))
this is generated in assemble_python_code.py in def assemble_python_code:
final_code = black.format_str(final_code, mode=black.Mode())
Please notice the "➕ Add Lora" where ➕ is an illegal character.
facing exactly the same problem
You can try https://github.com/pydn/ComfyUI-to-Python-Extension/issues/114