Comfy UI Supported

#388
by iamabhishekpatel - opened

I have simply downloaded this https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/flux1-dev.safetensors file and put it in the checkpoints folder and I face the below error.
Maybe, I don't know how to use this in comfy UI; Can you guide me on how I can do it?

!!! Exception during processing !!! ERROR: Could not detect model type of: /Users/abhishekpatel/Desktop/workspace/comfy/ComfyUI/models/checkpoints/flux1-dev.safetensors
Traceback (most recent call last):
File "/Users/abhishekpatel/Desktop/workspace/comfy/ComfyUI/execution.py", line 327, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/Users/abhishekpatel/Desktop/workspace/comfy/ComfyUI/execution.py", line 202, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/Users/abhishekpatel/Desktop/workspace/comfy/ComfyUI/execution.py", line 174, in _map_node_over_list
process_inputs(input_dict, i)
File "/Users/abhishekpatel/Desktop/workspace/comfy/ComfyUI/execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "/Users/abhishekpatel/Desktop/workspace/comfy/ComfyUI/nodes.py", line 568, in load_checkpoint
out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings"))
File "/Users/abhishekpatel/Desktop/workspace/comfy/ComfyUI/comfy/sd.py", line 851, in load_checkpoint_guess_config
raise RuntimeError("ERROR: Could not detect model type of: {}".format(ckpt_path))
RuntimeError: ERROR: Could not detect model type of: /Users/abhishekpatel/Desktop/workspace/comfy/ComfyUI/models/checkpoints/flux1-dev.safetensors

That is not the way how you set this up. There is a flux guide in the ComfyUi Wiki here:
https://comfyui-wiki.com/en/tutorial/advanced/flux1-comfyui-guide-workflow-and-examples

But maybe read the basics guide on that website too.

Gotcha, thank you.

iamabhishekpatel changed discussion status to closed

Sign up or log in to comment