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

dataset I think there may be a bug #51

Open
AN-ZE opened this issue May 30, 2023 · 0 comments
Open

dataset I think there may be a bug #51

AN-ZE opened this issue May 30, 2023 · 0 comments

Comments

@AN-ZE
Copy link

AN-ZE commented May 30, 2023

In the code, the image is resized to 512, but the mask does not perform any operations. Their shapes are different

img = img.resize((512, 512), Image.BILINEAR)

label = Image.open(osp.join(self.rootpth, 'mask', impth[:-3]+'png')).convert('P')

The latter is changed through RandomScale.
I think add a line of code
label = label.resize((512, 512), Image.NEAREST)

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