-
Notifications
You must be signed in to change notification settings - Fork 9.7k
fix jpg->png #6490
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 jpg->png #6490
Conversation
Hi, we have fixed the compatibility with MMCV in v2.18.1. Now the CI can work normally. Please pull the latest master and re-run the unit tests. |
I had pulled the latest master, but I can't understand how to re-run the unit tests. |
Just push your commit. The GitHub action will trigger the unit tests automatically.
Run |
I have pulled the latest master and re-run the unit tests.
Maybe it's because my current system is windows10. |
|
Can we use img_prefix and seg_prefix to resolve this issue just like those in mmseg? see example here https://github.com/open-mmlab/mmsegmentation/blob/master/mmseg/datasets/custom.py#L82 |
is this issue solved? |
Resolved in #9078 |
Hi @Neesky !We are grateful for your efforts in helping improve this open-source project during your personal time. |
Motivation
When I use the htc network, a certain file name of the picture in stuffthingmaps is xxxxjpgxxx.jpg, and the conversion method of the original code will make it become xxxxpngxxx.png. I think this is extremely unreasonable, so I modified it.
Modification
From seg_map = img_info['filename'].replace('jpg', 'png')
To seg_map = img_info['filename'].split(".")[0] + ".png"