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

pretrained model #1

Open
dleam opened this issue Dec 17, 2018 · 5 comments
Open

pretrained model #1

dleam opened this issue Dec 17, 2018 · 5 comments

Comments

@dleam
Copy link

dleam commented Dec 17, 2018

Excellent job. Can you please provide a pretrained model for the further research?

@Peilun-Li
Copy link
Owner

Peilun-Li commented Dec 17, 2018

Hi @dleam , thanks for your interest! Here it is: https://1drv.ms/u/s!AmVzKjduHCxdqSQrUlK7nxz2wvZj

@dleam
Copy link
Author

dleam commented Dec 17, 2018

Thanks for your quick reply. I will try it.

@dleam
Copy link
Author

dleam commented Dec 22, 2018

Hi @Peilun-Li , I have tried your model and the result is excellent. I have another question about your code after reading your paper.

self.DB_fake_sample = self.discriminator(
        self.fake_B_sample, self.mask_B_sample, self.options, reuse=True, name="discriminatorB")
self.DA_fake_sample = self.discriminator(
        self.fake_A_sample, self.mask_A_sample, self.options, reuse=True, name="discriminatorA")

Why do you multiply fake_B and mask_B (fake_A and mask_A) here? " To my understanding, the fake_B and (semantic)mask_B have different structures. How to understand this operation in your code? Thanks~

@Peilun-Li
Copy link
Owner

Hi @dleam , Per this feed_dict setting (https://github.com/Peilun-Li/SG-GAN/blob/master/model.py#L215-L231) you can find fake_B_sample is adapted from real_A, and mask_B_sample is actually mask_A. Since we wanna keep semantic information from being changed during the adaptation, fake_B_sampe and real_A should share the same semantic information, thus we are multiplying fake_B_sample with mask_A, i.e., mask_B_sample.

@dleam
Copy link
Author

dleam commented Dec 28, 2018

Thank you!

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