Open jacekpie opened 2 years ago
I connected grey-scale image source to image normalisation module. The output from image source is u8[1, 31, 200, 1]
u8[1, 31, 200, 1]
Image normalisation logs out an error: "the number of channels should be either 1 or 3, found 1"
The code at fault is this match statement:
match
https://github.com/hotg-ai/proc-blocks/blob/46fae77ce5485f57072ddf004b7b8edd78a3ecc5/image-normalization/src/lib.rs#L22-L29
The first arm needs to be changed to [_, _, _, 3] | [_, _, _, 1] => {} when we go through and migrate the image-normalization proc-block to the new Rune ABI.
[_, _, _, 3] | [_, _, _, 1] => {}
I connected grey-scale image source to image normalisation module. The output from image source is
u8[1, 31, 200, 1]
Image normalisation logs out an error: "the number of channels should be either 1 or 3, found 1"