microsoft / onnxjs

ONNX.js: run ONNX models using JavaScript
Other
1.75k stars 130 forks source link

Convert Output Tensor to Image/Canvas #260

Open 10dimensions opened 3 years ago

10dimensions commented 3 years ago

I've a onnx model which predicts depth-image as a tensor. Any suggestions on how I can convert the tensor to an image/canvas ?

I tried looking up ndarray library, but couldn't find this particular api...