Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

what's this -1 meaning?? #156

Closed
who1129 opened this issue Aug 13, 2020 · 0 comments
Closed

what's this -1 meaning?? #156

who1129 opened this issue Aug 13, 2020 · 0 comments

Comments

@who1129
Copy link

who1129 commented Aug 13, 2020

load label

    lbl_file = data_file['lbl']
    lbl = PIL.Image.open(lbl_file)
    lbl = np.array(lbl, dtype=np.int32)
    lbl[lbl == 255] = -1
    if self._transform:
        return self.transform(img, lbl)
    else:
        return img, lbl

I found this code on voc.py dataset class.
Can you tell me what this -1 value means??

@who1129 who1129 closed this as completed Aug 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant