-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Fix] Fix bug in conversion of potsdam #1279
Conversation
Hi @SBCV |
Hi, thanks for your warm hearted pr. By the way, in what circumstance would the potential error happen? In current code, all zip files are used in Could you give certain examples or error snapshot to help me figure out your explanation? Thanks in advance. Best, |
Let's assume that we have a folder containing
Now let us assume that Note: The ORDER of After the SECOND execution of
the temporary folder contains
Because the temporary folder already contains
the following if case (in the second iteration) is never executed
But it should, since the Therefore, the created dataset directory does not contain the RGB images of the potsdam dataset (only the labels) |
OK, got it. Thanks for your nice explanation! |
…atents (open-mmlab#1279) fix bs for mask and masked latents
sbcv,您好!您在MMSeg项目中给我们提的PR非常重要,感谢您付出私人时间帮助改进开源项目,相信很多开发者会从你的PR中受益。 |
* add smoothnet * refactor smothnet model and filter * Add unit test for SmoothNetFilter * support root-index * add docstring * add md and update ReadMe * update readme * allow targets share filter * remove devug code * Update smoothnet_h36m.md * fix lint * fix unittest Co-authored-by: ly015 <liyining0712@gmail.com>
Motivation
Currently, the success of the conversion of the potsdam dataset depends on the order of the files returned by
os.listdir(tmp_dir)[0]
. This works correctly for the first zip file, but can potentially break the processing of the second zip file.Modification
Ensure that a new temporary directory is created for each zip file. This way each temporary directory contains only one zip file. In this case os.listdir(tmp_dir)[0] will return the correct string.