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

Question about the feature maps #40

Open
subrtade662 opened this issue Dec 20, 2021 · 0 comments
Open

Question about the feature maps #40

subrtade662 opened this issue Dec 20, 2021 · 0 comments

Comments

@subrtade662
Copy link

Hello, I have a question about the feature maps, which are fed into the style interpreter. It is said in the paper, that the feature maps are the outputs of AdaIN layers. However, the code below (forward function of the Gsynthesis block) suggests something different (x is the output of the second convolution layer in the block). Which one is the correct version ? Or am I missing something?

Thanks in advance

def forward(self, x, dlatents_in_range, latent_after_trans=None):
x = self.conv0_up(x)
if latent_after_trans is None:
x = self.epi1(x, dlatents_in_range[:, 0])
else:
x = self.epi1(x, dlatents_in_range[:, 0], latent_after_trans[0]) # latent_after_trans is a list
x = self.conv1(x)
if latent_after_trans is None:
x1 = self.epi2(x, dlatents_in_range[:, 1])
else:
x1 = self.epi2(x, dlatents_in_range[:, 1], latent_after_trans[1])
return x1, x

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

1 participant