Unity-Technologies / com.unity.perception

Perception toolkit for sim2real training and validation in Unity
Other
910 stars 177 forks source link

how to visualise the depth .exr #543

Closed mshooter closed 1 year ago

mshooter commented 1 year ago

Hi,

how do I visualise the depth .exr properly? When I open it with photoshop it just shows a segmented object

Thank you

StevenBorkman commented 1 year ago

Hey @mshooter, there are a couple of ways to look at the exr files created for depth that I can recommend.

On my macbook they just open, so I assume that you are not on mac or maybe I have installed an app to look at them that I don't remember.

On windows, you can use RenderDoc to visualize them, it is a free program that you can use to debug graphics frames. But since it works with a lot of HDR image types, it can open exr files.

You can use a free web utility, such as https://viewer.openhdr.org/

Or you can try out our new Voxel51 based viewer: https://github.com/Unity-Technologies/pysolotools-fiftyone (which can be installed with pip install pysolotools-fiftyone in a python environment). But if you are on windows you will need to do some extra install steps to be able to visualize exr files. The instructions can be found in the README of the github page.

I am going to close this now, but feel free to open it back up if you have any other questions.

Best of luck.

mshooter commented 1 year ago

Hi, @StevenBorkman, thank you for answering and giving #tips . I am on Windows. Mine still displays the object in red instead of a proper depth map. depth_erro

Edit: I just red the documentation. The depth is set into the red channel and is set to meters. This is why it displays it in red. https://github.com/Unity-Technologies/com.unity.perception/blob/main/com.unity.perception/Documentation~/PerceptionCamera.md

Edit: However, I do not know why my object is fully red and does not show any depth when using renderdoc

Edit: it works, just had to change the range

Thank you

StevenBorkman commented 1 year ago

Correct, you just have to change the range. I should have mentioned that. I'm glad to hear that everything is working for you now.