ComfyUI-HQ-Image-Save
ComfyUI-HQ-Image-Save copied to clipboard
LoadEXR: "too many indices for array: array is 2-dimensional, but 3 were indexed"
Hi! The attached error message appears whenever I try to generate with ObjectNormals.exr HOWEVER CameraNormals.exr loads perfectly fine. The export settings are identical. Same problem with exported depth passes and so on, only that one file works. I tried switching between rgb and rgba but to not avail. Would appreciate your help!
Issue file upload doesnt support exrs so here is a drive link containg all relevant files.
https://drive.google.com/drive/folders/1i5hOtphTVBKczZMOw1IPUt1CiDyrErQq?usp=sharing
This is the workflow.json
BTW you mentioned somewhere that people probably won't want to use a multipass workflow with this..Just to let you know, I want to! I think it's an interesting workflow. Using perfect cg renders as input and guiding ai generation.
ComfyUI Error Report
Error Details
-
Node Type: LoadEXR
-
Exception Type: IndexError
-
Exception Message: too many indices for array: array is 2-dimensional, but 3 were indexed
Stack Trace
File "/home/jovyan/comfyui/ComfyUI/execution.py", line 323, 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 "/home/jovyan/comfyui/ComfyUI/execution.py", line 198, 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 "/home/jovyan/comfyui/ComfyUI/execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "/home/jovyan/comfyui/ComfyUI/execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jovyan/comfyui/ComfyUI/custom_nodes/ComfyUI-HQ-Image-Save/nodes.py", line 85, in load
rgb, mask = load_EXR(p, linear_to_sRGB)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jovyan/comfyui/ComfyUI/custom_nodes/ComfyUI-HQ-Image-Save/nodes.py", line 29, in load_EXR
rgb = np.flip(image[:,:,:3], 2).copy()
~~~~~^^^^^^^^