XLabs-AI / x-flux

Apache License 2.0
1.55k stars 113 forks source link

Flux Lora in ComfyUI #23

Open ffdown opened 2 months ago

ffdown commented 2 months ago

Not work with LoadControlnet ComfyUI full updated just now

Error occurred when executing ControlNetLoader:

'NoneType' object has no attribute 'keys'

File "X:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-0246\utils.py", line 381, in new_func
res_value = old_func(*final_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\AI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 720, in load_controlnet
controlnet = comfy.controlnet.load_controlnet(controlnet_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\AI\ComfyUI_windows_portable\ComfyUI\comfy\controlnet.py", line 445, in load_controlnet
return load_controlnet_mmdit(controlnet_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\AI\ComfyUI_windows_portable\ComfyUI\comfy\controlnet.py", line 372, in load_controlnet_mmdit
model_config, operations, load_device, unet_dtype, manual_cast_dtype = controlnet_config(new_sd)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\AI\ComfyUI_windows_portable\ComfyUI\comfy\controlnet.py", line 345, in controlnet_config
model_config = comfy.model_detection.model_config_from_unet(sd, "", True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\AI\ComfyUI_windows_portable\ComfyUI\comfy\model_detection.py", line 284, in model_config_from_unet
unet_config = detect_unet_config(state_dict, unet_key_prefix)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\AI\ComfyUI_windows_portable\ComfyUI\comfy\model_detection.py", line 37, in detect_unet_config
state_dict_keys = list(state_dict.keys())
^^^^^^^^^^^^^^^
Anghellia commented 2 months ago

Hi! We released our custom nodes for ComfyUI, so you can find example workflows in our repo and try with our models: