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

normalize trimap #13

Open
ucb-pb opened this issue Aug 22, 2020 · 1 comment
Open

normalize trimap #13

ucb-pb opened this issue Aug 22, 2020 · 1 comment

Comments

@ucb-pb
Copy link

ucb-pb commented Aug 22, 2020

Hi, thanks for sharing your work. Just wondering -- why do you normalize the alpha image but not the trimap when training?

@Yaoyi-Li
Copy link
Owner

I'm not sure about what do you mean by normalizing alpha image and trimap.
If you mean this line:

alpha = cv2.imread(self.alpha[idx % self.fg_num], 0).astype(np.float32)/255

Our network takes a 3-channel one-hot trimap as the input, so the trimap need not to be normalized.

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

2 participants