Tensor to texture every frame

I tried a few methods to copy the output tensor values into a texture and it needs to be done every frame. SetPixel and SetPixels are very slow. I also tried Buffer.BlockCopy and the results are still slow. This is the what I’m trying to achieve and is it mentions, I get crashes due to running out of memory.
Thanks in advance for any suggestions!

Check the samples, theres a Tensor-to-texture one
Find samples at: Package manager, select Sentis, look the tabs on teh right, (Description, Version history, Dependensices, Samples) → Convert tensors to textures

I am currently using those functions but they cause crashes after sometime. So I need a way to copy the tensor data into an already created texture.

TextureConverter.RenderToTexture(texture, tensor) allows you to do just that

If you are still not able to get this working, please post here or DM me your project (in a zip or git repo), and some stack traces or logs to show exactly where the crashes are happening. That is the best way for us to help. Thanks!

1 Like

Hi,

We’ve received your project. It’s currently being investigated and is known internally as issue 120.

Thanks.

1 Like

This is Fixed in 1.3.0