1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 07:15:47 +01:00

Close the image segmenter result.

This doesn't currently do anything useful, since we're running
tflite on the CPU, but might avoid bugs if we get GPU support.
This commit is contained in:
Juliusz Chroboczek 2024-12-13 22:59:53 +01:00
parent a38676c9f6
commit bf46a9d6c1

View file

@ -47,6 +47,7 @@ onmessage = e => {
let id = new ImageData(width, height);
for(let i = 0; i < mask.length; i++)
id.data[4 * i + 3] = mask[i];
result.close();
createImageBitmap(id).then(ib => {
postMessage({
bitmap: bitmap,