Unity-Technologies / com.unity.perception

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

Depth Labeler doesn't work #584

Closed WiktorLigeza closed 1 year ago

WiktorLigeza commented 1 year ago

Discussed in https://github.com/Unity-Technologies/com.unity.perception/discussions/583

Originally posted by **WiktorLigeza** March 22, 2023 ![image](https://user-images.githubusercontent.com/60184155/227006711-e43c8bb3-9fb2-4fdf-a9a3-3f696a36090f.png) Hi, my depth labeler is not working. I am using the perception package 1.0.0 in HDRP project with tutorial files and a conveyor belt sample. It produces flat red depth files (just like one on the screenshot). I mean the program runs but the results are, idk, flat(?). PS: Unity Editor 2022.1.18f1
StevenBorkman commented 1 year ago

Hi, it's probably working correctly, it's just difficult to see the results because the data is encoded in 64 bits in the red channel and most image viewing applications only see 32 bits. Please see the documentation on the depth labeler for some hints on how to view it properly.

Also, let me point out our Voxel51 integration, found here, which is a really good way to view perception generated data. It properly visualizes depth data.

WiktorLigeza commented 1 year ago

Yeap, it works! Thanks for your quick response :D