The demo of Transformers.js reports error

#5
by areyouokkk - opened

// each label is a separate mask object
// [
// { score: null, label: 'background', mask: transformers.js RawImage { ... }}
// { score: null, label: 'hair', mask: transformers.js RawImage { ... }}
// ...
// ]
for (const m of output) {
print(Found ${m.label});
m.mask.save(${m.label}.png);
}

image.png

the output is Uint8ClampedArray, why is different from your demo? And this Uint8ClampedArray is not a multiple of 4
Thanks!

Sign up or log in to comment