snapML custom data array as input
I'm trying to use a custom data array (as opposed to a texture) as input to my model.
My model expects 256x256 1 channel grayscale image as input.
var input = mlComponent.getInput("input.1");
"data" has my image pixels array ([0,0,255,0,0......]) which is 256x256 long.
I tried both 1D or 2D but I alwasy get the error
23:44:02.134 [Scenarium] Error: Argument 0: Value is not an array
at [anon] () native strict preventsyield
at onLoadingFinished (Script.js:382) preventsyield
Made a ticket to follow up.