-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visible Mask - Data generation #384
Comments
I am not sure I am following, could share an example? |
https://github.com/owl-project/NVISII/blob/master/examples/09.meta_data_exporting.py#L125-L139 check this out, this is what you want to save, if you look at the code, when we compute the visibility, we move objects and render them around to get percentage. |
Hi @TontonTremblay, if possible could you please provide a simple example to achieve this. Thanks |
Did you look at the code? I pointed at directly what you need. |
Hi, I did look at the code
what I don't understand is how do I manipulate the visibility of the segmentation mask. In addition to this if I want to exclude a certain entity from the segmentation mask how do I achieve it? The render_data_to_file with enitity_id as an option renders the segmentation mask of all the entities. Is there a way to exclude a certain entity and also control the visibility? Thanks |
https://github.com/TontonTremblay/nvisii_mvs/blob/main/utils.py#L2050 The idea is, you get the segmentation mask, which has entity ids in there for your objects. You remove anything else that is not your object id. Then you have your mask. np.where should work just fine for that. Here is an example that I used to produce percentage visibility of an object where I render the scene with only the object, then I render the object with the other objects and compare the pixels. |
Often it is required to obtain only the visible portion of the mask for the object and thus removing the mask of distractors. How to achieve this?
The text was updated successfully, but these errors were encountered: