Skip to content
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

Broken depths and masks for specific objects in MegaPose-ShapeNet #112

Open
jcorsetti opened this issue Jan 10, 2024 · 5 comments
Open

Broken depths and masks for specific objects in MegaPose-ShapeNet #112

jcorsetti opened this issue Jan 10, 2024 · 5 comments

Comments

@jcorsetti
Copy link

Hello,

I have been playing with the MegaPose partition that uses the objects from ShapeNet, and I have noticed that the depth renderings and the masks for certain objects are not correct. Here is an example from the image 000087_000019:

Depth:
000087_000019 depth
Mask:
000087_000019 mask

You can observe that at least 4 objects have an extremely noisy depth map, and the same happens with their mask (which I obtained from the original RLE with the script you provided). I suspect that this is due to some objects transparencies that led to incorrect rendering. The problem appears widespread enough, as I have seen an average of 2-3 broken objects for each scene.

Would it be possible for you to investigate on this issue, and maybe provide a list of the objects that present this behaviour so that they could be excluded?

@astrophotoversum
Copy link

astrophotoversum commented Jul 4, 2024

Hi Jaime,
I wrote a python script the filters the broken depth masks relatively well. For every depth mask it analyses the magnitude spectrum of the FFT and standard deviation. The majority of the broken depth masks should be found with this script. However, in some cases really small broken depth masks or broken sub-regions are not found (I didn't check every image). You can of course adapt the script according to your needs and regenerate the files (It might take some time).

In the following zip-file you can find a python file and some .txt-files. The python file generates a .txt file for every shard. The lines in the shard-.txt represent the scenes and the corresponding broken depth mask indices (if there are any).

find_broken_depth_masks.zip

If you have any questions, please do not hesitate to contact me!
Cheers,
Lukas

**EDIT:
The upper .zip-file only contained .txt-files for the GSO dataset. Here is a .zip-file that has the .txt-files for ShapeNet:
shapenet_1M_corrupted_depths.zip

@thodan
Copy link
Owner

thodan commented Jul 6, 2024

Thanks @astrophotoversum for preparing the script!

Do you know how many broken depth images there are in the whole MegaPose dataset? Would it be possible to provide a list of the broken images (so everyone doesn't need to run the script)? We could link the list on the BOP website.

@astrophotoversum
Copy link

astrophotoversum commented Jul 11, 2024 via email

@zuodexin
Copy link

zuodexin commented Nov 6, 2024

What is the difference between shards in MegaPose-GSO-fixed and shards in MegaPose-GSO ?

@astrophotoversum
Copy link

Hi zuodexin,
the MegaPose-GSO/ShapeNetCore-fixed data contain images that are corrected for the flipped object masks (see #103 for more information). Furthermore, in the ***-fixed folders you will find subfolders named "GSO_broken_depth_maps" (for GSO) and "shapenet_1M_corrupted_depths" (for ShapeNet). These folders contain txt.-files for every shard. Every file contains several lines where each line represents an image in the shard and the numbers in each line are the indices of the objects with broken depth maps in that image (the issue described above). The indices are found with the script I provided above.
I hope that helps!
Best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants