Skip to content

dataset I think there may be a bug #51

@AN-ZE

Description

@AN-ZE

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions