ComfyUI-DeepExtract icon indicating copy to clipboard operation
ComfyUI-DeepExtract copied to clipboard

all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 2 and the array at index 1 has size 1

Open sun-jin-shu opened this issue 8 months ago • 3 comments

Starting vocal and sound separation process. Model loaded successfully, starting separation. [[[ 0 0 0 ... 0 0 0]]] (1, 1, 1460442) Error during separation: all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 2 and the array at index 1 has size 1 !!! Exception during processing !!! all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 2 and the array at index 1 has size 1 Traceback (most recent call last): File "D:\comfyui3\ComfyUI\execution.py", line 347, 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:\comfyui3\ComfyUI\execution.py", line 222, 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:\comfyui3\ComfyUI\execution.py", line 194, in _map_node_over_list process_inputs(input_dict, i) File "D:\comfyui3\ComfyUI\execution.py", line 183, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui3\ComfyUI\custom_nodes\ComfyUI-DeepExtract\nodes.py", line 23, in execute vocals, background = vocal_remover.execute() ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui3\ComfyUI\custom_nodes\ComfyUI-DeepExtract\scripts\vocal_and_sound_remover.py", line 66, in execute raise e File "D:\comfyui3\ComfyUI\custom_nodes\ComfyUI-DeepExtract\scripts\vocal_and_sound_remover.py", line 59, in execute result = separator.separate() ^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui3\ComfyUI\custom_nodes\ComfyUI-DeepExtract\modules\separate.py", line 86, in separate vocals = self.demix(mix) ^^^^^^^^^^^^^^^ File "D:\comfyui3\ComfyUI\custom_nodes\ComfyUI-DeepExtract\modules\separate.py", line 126, in demix mixture = np.concatenate( ^^^^^^^^^^^^^^^ ValueError: all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 2 and the array at index 1 has size 1

sun-jin-shu avatar May 09 '25 19:05 sun-jin-shu

What's your workflow? What file are you loading? Try with a stereo MP3 file, 44.1 kHz of sampling rate.

set-soft avatar May 24 '25 17:05 set-soft

Hi @sun-jin-shu ! I fixed this issue in my fork with this patch: https://github.com/set-soft/ComfyUI-DeepExtract/commit/8286de651fa4e5dc3bdcd868fc259415ade96a85 The sample rate needs adjust, you must use 44.1 kHz.

set-soft avatar May 24 '25 22:05 set-soft

And now I added support for different sample rates: https://github.com/set-soft/ComfyUI-DeepExtract/commit/e4a6663c2d9bbbd58925b70d40b20c4622d0ddbc

I tested 32 kHz and 48 kHz

set-soft avatar May 24 '25 23:05 set-soft