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

How to train the discriminator network? #1

Closed
hailuoS opened this issue Mar 1, 2018 · 1 comment
Closed

How to train the discriminator network? #1

hailuoS opened this issue Mar 1, 2018 · 1 comment

Comments

@hailuoS
Copy link

hailuoS commented Mar 1, 2018

In this paper, the discriminator network takes a probability map of size H × W × C and outputs a confidence map of size H × W × 1. I don't understand how to train this discriminator network, what are the labels during the training phase ? As my understanding, when the probability map comes from the ground truth, the label is a map of size H × W × 1 and the values in the map are all 1, in contrast, when the probability map comes from the segmentation network, the label is a map of size H × W × 1 and the values in the map are all 0. Am I right? Hope to get your answer. Thanks so much

@hfslyc
Copy link
Owner

hfslyc commented Mar 1, 2018

Yes, you are right. It's like training a GAN with spatial ground truths. Please refer to https://github.com/hfslyc/AdvSemiSeg/blob/master/train.py#L380-L412 for how to train the discriminator network.

@hailuoS hailuoS closed this as completed Mar 20, 2018
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