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

Could not reproduce results for generate_synthia_label.py and the use of its result #23

Open
KiwiXR opened this issue Jul 27, 2021 · 2 comments

Comments

@KiwiXR
Copy link

KiwiXR commented Jul 27, 2021

I ran generate_synthia_label.py with both default settings (nproc=16) and nproc=1, but got output files varing greatly in size. Specifically, the file synthia_label_info.p you provided is around 1322KB, while my results are 458KB for nproc=16 and 1157KB for nproc=1. I am wondering what to blame for such a big difference.
Besides, would you be so kind to tell me about the functionality of such a step, as well as the performance boost of it?

@KiwiXR
Copy link
Author

KiwiXR commented Jul 30, 2021

Well, I made a mistake in reading images (pngs) with PIL.Image instead of imageio while doing multiprocessing, sorry for the misreport. By the way, I compare the contents of provided .p file and the one I correctly produced, finding no difference. Therefore, I assume that pickle's better compression algorithm may be the reason behind it.
Anyway, thanks for your great work!

@KiwiXR KiwiXR closed this as completed Jul 30, 2021
@KiwiXR KiwiXR reopened this Jul 30, 2021
@KiwiXR
Copy link
Author

KiwiXR commented Jul 30, 2021

Rereading the code, I found the error do exist in the provided datasets/generate_synthia_label.py within line 75, which should be like this one in line 61.
Best regards.

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

1 participant