lkeab / gaussian-grouping

[ECCV'2024] Gaussian Grouping for open-world Anything reconstruction, segmentation and editing.
https://arxiv.org/abs/2312.00732
Apache License 2.0
607 stars 43 forks source link

total number of mask identities #31

Open jsxzs opened 6 months ago

jsxzs commented 6 months ago

Hi, great work! How to get the total number of mask identities? In your train.json file, you pre-define the num_classes as 256. The num_classes should vary over different 3D scenes, right? Why you define it as a fixed number?

ymq2017 commented 5 months ago

Hi, thanks for watching our work. 256 is the max number of identities here. We set it to 256 since it can be easily stored in one gray image with 8 bits per pixel. Usually, a scene has less than 256 identities. If a scene has more than 256 we can also switch to a 16-bit gray image.

jsxzs commented 5 months ago

Thank you so much.

dhgras commented 5 months ago

Hello, my scene is more complex, and the number of objects that need to be encoded more than 256. So, as you mentioned above, I am trying to switch to 16-bit gray image. So can you tell me what needs to be modified in the code when switching to a 16-bit gray image?