barracuda-release icon indicating copy to clipboard operation
barracuda-release copied to clipboard

Saved PNG image of Texture2D shows Blank Image.

Open sudheer-akki opened this issue 1 year ago • 1 comments

Hi Team,

Thanks for the Barracuda GPU Support. currently, I am working on inferencing UNet ONNX model using Barracuda 3.0.0 version but the output Tensor is converted Texture2D then saved PNG, but it shows the blank image. I tried many but none of them worked well.

I would appreciate any insights about the issue

sudheer-akki avatar Mar 27 '23 16:03 sudheer-akki

I've had this problem before, so it can be fixed. Sorry, but it's been a while! But heres some things to try:

  • Apply the render texture to the surface of a game object that you can view with the camera. You should be able to see it in-game, so this way you can test if it is working or not without having to save.
  • Set the render textures to R8G8B8A8_UNORM if it's a three channel image. Try other three channel image options.
  • Set the render textures to R8_SNORM if it's a greyscale image. Try other single channel image options.
  • Save with the filename including the extension (.png)

Hope this helps!

dilne avatar Apr 11 '23 02:04 dilne