Skip to content

only 0-dimensional arrays can be converted to Python scalars #384

@codeliger

Description

@codeliger

To see the GUI go to: http://127.0.0.1:8188
got prompt
Using split attention in VAE
Using split attention in VAE
VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
gguf qtypes: Q5_K (144), F32 (73), Q6_K (25)
Attempting to recreate sentencepiece tokenizer from GGUF file metadata...
!!! Exception during processing !!! only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last):
File "/home/codeliger/code/comfyui/execution.py", line 516, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/execution.py", line 330, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/execution.py", line 304, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "/home/codeliger/code/comfyui/execution.py", line 292, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "/home/codeliger/code/comfyui/custom_nodes/ComfyUI-GGUF/nodes.py", line 244, in load_clip
return (self.load_patcher([clip_path], clip_type, self.load_data([clip_path])),)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/custom_nodes/ComfyUI-GGUF/nodes.py", line 220, in load_data
sd = gguf_clip_loader(p)
^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/custom_nodes/ComfyUI-GGUF/loader.py", line 383, in gguf_clip_loader
sd["spiece_model"] = gguf_tokenizer_loader(path, sd[temb_key].shape)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/custom_nodes/ComfyUI-GGUF/loader.py", line 327, in gguf_tokenizer_loader
spm.trainer_spec.eos_id = get_field(reader, "tokenizer.ggml.eos_token_id", int)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/custom_nodes/ComfyUI-GGUF/loader.py", line 36, in get_field
return field_type(field.parts[field.data[-1]])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: only 0-dimensional arrays can be converted to Python scalars

Prompt executed in 17.20 seconds
got prompt
gguf qtypes: Q5_K (144), F32 (73), Q6_K (25)
Attempting to recreate sentencepiece tokenizer from GGUF file metadata...
!!! Exception during processing !!! only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last):
File "/home/codeliger/code/comfyui/execution.py", line 516, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/execution.py", line 330, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/execution.py", line 304, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "/home/codeliger/code/comfyui/execution.py", line 292, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "/home/codeliger/code/comfyui/custom_nodes/ComfyUI-GGUF/nodes.py", line 244, in load_clip
return (self.load_patcher([clip_path], clip_type, self.load_data([clip_path])),)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/custom_nodes/ComfyUI-GGUF/nodes.py", line 220, in load_data
sd = gguf_clip_loader(p)
^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/custom_nodes/ComfyUI-GGUF/loader.py", line 383, in gguf_clip_loader
sd["spiece_model"] = gguf_tokenizer_loader(path, sd[temb_key].shape)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/custom_nodes/ComfyUI-GGUF/loader.py", line 327, in gguf_tokenizer_loader
spm.trainer_spec.eos_id = get_field(reader, "tokenizer.ggml.eos_token_id", int)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codeliger/code/comfyui/custom_nodes/ComfyUI-GGUF/loader.py", line 36, in get_field
return field_type(field.parts[field.data[-1]])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: only 0-dimensional arrays can be converted to Python scalars

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions