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

Different results for same image during load_image #540

Open
sizov-kirill opened this issue Nov 8, 2021 · 1 comment
Open

Different results for same image during load_image #540

sizov-kirill opened this issue Nov 8, 2021 · 1 comment
Assignees
Labels
BUG Something isn't working

Comments

@sizov-kirill
Copy link

The function load_image can return different images for different backends.
This issue was discovered while experimenting with loading class masks from the original Mapillary Vistas dataset.
If the function load_image using PIL backend for reading mapillary mask, then it returns array with the shape [H, W, 1],
at the same time if load_image using OpenCV backend, then it returns array with the shape [H, W, 3].

Such behavior could potentially affects reading datasets in other formats too.

@sizov-kirill sizov-kirill added the BUG Something isn't working label Nov 8, 2021
@sizov-kirill sizov-kirill self-assigned this Nov 8, 2021
@zhiltsov-max
Copy link
Contributor

Consider adding / extending tests for different backends. Maybe, running all tests with non-default backed is a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants