Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With newest update, max() arg is an empty sequence when loading dual CLIPs for Flux #188

Open
EnragedAntelope opened this issue Dec 22, 2024 · 2 comments

Comments

@EnragedAntelope
Copy link


# ComfyUI Error Report
## Error Details
- **Node ID:** 598
- **Node Type:** DualCLIPLoaderGGUF
- **Exception Type:** ValueError
- **Exception Message:** max() arg is an empty sequence
## Stack Trace

File "D:\ComfyUI\execution.py", line 328, 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 "D:\ComfyUI\execution.py", line 203, 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 "D:\ComfyUI\execution.py", line 174, in _map_node_over_list
process_inputs(input_dict, i)

File "D:\ComfyUI\execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\ComfyUI\custom_nodes\ComfyUI-GGUF\nodes.py", line 259, in load_clip
return (self.load_patcher(clip_paths, get_clip_type(type), self.load_data(clip_paths)),)
^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\ComfyUI\custom_nodes\ComfyUI-GGUF\nodes.py", line 218, in load_data
sd = gguf_clip_loader(p)
^^^^^^^^^^^^^^^^^^^

File "D:\ComfyUI\custom_nodes\ComfyUI-GGUF\loader.py", line 151, in gguf_clip_loader
sd, arch = gguf_sd_loader(path, return_arch=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\ComfyUI\custom_nodes\ComfyUI-GGUF\loader.py", line 84, in gguf_sd_loader
max_key = max(qsd.keys(), key=lambda k: qsd[k].numel())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

## System Information
- **ComfyUI Version:** v0.3.9-10-g57f330c
- **Arguments:** main.py --front-end-version Comfy-Org/ComfyUI_frontend@latest --use-sage-attention
- **OS:** nt
- **Python Version:** 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
- **Embedded Python:** false
- **PyTorch Version:** 2.5.1+cu124
city96 added a commit that referenced this issue Dec 22, 2024
@city96
Copy link
Owner

city96 commented Dec 22, 2024

Sorry, should be fixed now I think.

@EnragedAntelope
Copy link
Author

Incredible speed! Thanks. Will retest asap but may be several hours before I can get back to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants