Skip to content

fix: Pascal Context ignore pixels mapped to class 0 instead of 255 - #70

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/prepare-pascal-ctx-sem-seg-e27d6af5
Open

fix: Pascal Context ignore pixels mapped to class 0 instead of 255#70
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/prepare-pascal-ctx-sem-seg-e27d6af5

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Problem

fix: Pascal Context ignore pixels mapped to class 0 instead of 255

Fix

Replace:

        index = np.digitize(mask.ravel(), _mapping, right=True)
        return _key[index].reshape(mask.shape)

with:

        index = np.digitize(mask.ravel(), _mapping)
        return _key[index].reshape(mask.shape)

Files changed

  • datasets/prepare_pascal_ctx_sem_seg.py

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

Successfully merging this pull request may close these issues.

1 participant