Lab fixes

This commit is contained in:
luboslenco
2024-10-23 14:00:19 +02:00
parent fe1d9d19a1
commit 85bcbdb7bb
9 changed files with 25 additions and 20 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ function upscale_node_do_tile(source: image_t): image_t {
f32a[i + size1w * size1w * 2] = (u8a[i * 4 + 2] / 255);
}
let tensors: buffer_t[] = [buffer_create_from_raw(f32a.buffer, f32a.length)];
let tensors: buffer_t[] = [buffer_create_from_raw(f32a.buffer, f32a.length * 4)];
let input_shape: i32_array_t[] = [];
let input_shape0: i32[] = [1, 3, size1w, size1h];
array_push(input_shape, input_shape0);