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

关于StyleEncoder #64

Open
inferioronly opened this issue Nov 17, 2024 · 0 comments
Open

关于StyleEncoder #64

inferioronly opened this issue Nov 17, 2024 · 0 comments

Comments

@inferioronly
Copy link

inferioronly commented Nov 17, 2024

作者您好,感谢贡献出十分出色的工作!关于StyleEncoder的forward中有一点我还不太明白,想请教一下作者,在
for index, blocklist in enumerate(self.blocks):
for block in blocklist:
h = block(h)
if index in self.save_featrues[:-1]:
residual_features.append(h)
h = self.blocks[-1](h)
style_emd = h
这部分代码,这里为什么要让h经过两次self.blocks的last_layer才赋值给style_emd,这样做有什么好处吗?
希望能得到您的回复,不胜感谢!

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