NimaNzrii / comfyui-photoshop

ComfyUi inside of your Photoshop! you can install the plugin and enjoy free ai genration
Other
517 stars 31 forks source link

Error occurred when executing LoraLoader #152

Open denipesto opened 1 month ago

denipesto commented 1 month ago

Thanks for the great plugin. I'm getting an error. I did everything according to the instructions. All files are in their folders. Missing components are installed.

!!! Exception during processing!!! 'NoneType' object has no attribute 'lower' Traceback (most recent call last): File "/pinokio/api/comfyui.git/app/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/pinokio/api/comfyui.git/app/execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/pinokio/api/comfyui.git/app/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/pinokio/api/comfyui.git/app/nodes.py", line 611, in load_lora lora = comfy.utils.load_torch_file(lora_path, safe_load=True) File "/pinokio/api/comfyui.git/app/comfy/utils.py", line 14, in load_torch_file if ckpt.lower().endswith(".safetensors"): AttributeError: 'NoneType' object has no attribute 'lower

tolozine commented 1 month ago

the sam error

NimaNzrii commented 1 month ago

Guys can you please send an screenshot of your ComfyUi and find the red or purple node please

denipesto commented 1 month ago

@NimaNzrii photo_2024-07-16_21-27-40 photo_2024-07-16_21-12-18

TheBlackHacker commented 3 weeks ago

I've been struggling with this error all day today, finally, I realized I was using symlink to link the lora models to the models/loras folder. This makes comfyui unable to read files in the loras folder.

In my case, I use the hf_hub_download function to download lora, and this function will automatically use the symlink instead of downloading the file directly to the destination directory.

Solved: Instead of symlink, I copied the lora model back into the models/loras folder. And all was perfect.