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

Query reading gray images as RGB #16

Open
akshu281 opened this issue Sep 15, 2020 · 0 comments
Open

Query reading gray images as RGB #16

akshu281 opened this issue Sep 15, 2020 · 0 comments

Comments

@akshu281
Copy link

Dear Authors,

When I tried to re-do the experiments using the same parameters in the saved file to replicate the same results on validation, I face the error when PIL is used to read the image and gt. There's a shape mismatch between the input (1,576,768) and output (3,576,768) while the transform is happening. So to fix it, I have to replace the line mentioned in basedataset.py !

Original way as per repo,
img = Image.open(img_path)
Modified way by me,
img = Image.open(img_path).convert('RGB')

An example image I faced this error is 1642.jpg in train set. Please let me know what effect does this have when I make the change. Any sort of explanation would be appreciated. Thank you in advance !

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