You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using some nodes to merge a spritesheet and then add some text below, so I get the image dimensions, create the text as image, calculate the width difference between them and add a pad on the text string so they match. But then I get this error:
"all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 125 and the array at index 1 has size 1276"
Can anyone help me, please?
I've attached a screen capture of the chain.
And here's the stack trace:
Error
all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 125 and the array at index 1 has size 1276
Stack Trace:
Traceback (most recent call last):
File "C:\Users\Hugo\AppData\Local\chaiNNer\app-0.24.1\resources\src\server.py", line 224, in run
await executor.run()
File "C:\Users\Hugo\AppData\Local\chaiNNer\app-0.24.1\resources\src\process.py", line 858, in run
await self.__process_nodes()
File "C:\Users\Hugo\AppData\Local\chaiNNer\app-0.24.1\resources\src\process.py", line 824, in __process_nodes
await self.__iterate_iterator_node(node)
File "C:\Users\Hugo\AppData\Local\chaiNNer\app-0.24.1\resources\src\process.py", line 800, in __iterate_iterator_node
collector.on_complete(), collector_node.data
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hugo\AppData\Local\chaiNNer\app-0.24.1\resources\src\packages\chaiNNer_standard\image\batch_processing\merge_spritesheet.py", line 67, in on_complete
row = np.concatenate(results[i * columns : (i + 1) * columns], axis=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<array_function internals>", line 200, in 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 125 and the array at index 1 has size 1276
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm using some nodes to merge a spritesheet and then add some text below, so I get the image dimensions, create the text as image, calculate the width difference between them and add a pad on the text string so they match. But then I get this error:
"all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 125 and the array at index 1 has size 1276"
Can anyone help me, please?
I've attached a screen capture of the chain.

And here's the stack trace:
Error
all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 125 and the array at index 1 has size 1276
Stack Trace:
Traceback (most recent call last):
File "C:\Users\Hugo\AppData\Local\chaiNNer\app-0.24.1\resources\src\server.py", line 224, in run
await executor.run()
File "C:\Users\Hugo\AppData\Local\chaiNNer\app-0.24.1\resources\src\process.py", line 858, in run
await self.__process_nodes()
File "C:\Users\Hugo\AppData\Local\chaiNNer\app-0.24.1\resources\src\process.py", line 824, in __process_nodes
await self.__iterate_iterator_node(node)
File "C:\Users\Hugo\AppData\Local\chaiNNer\app-0.24.1\resources\src\process.py", line 800, in __iterate_iterator_node
collector.on_complete(), collector_node.data
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hugo\AppData\Local\chaiNNer\app-0.24.1\resources\src\packages\chaiNNer_standard\image\batch_processing\merge_spritesheet.py", line 67, in on_complete
row = np.concatenate(results[i * columns : (i + 1) * columns], axis=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<array_function internals>", line 200, in 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 125 and the array at index 1 has size 1276
Beta Was this translation helpful? Give feedback.
All reactions