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

代码理解 #11

Open
xz0305 opened this issue Nov 13, 2023 · 1 comment
Open

代码理解 #11

xz0305 opened this issue Nov 13, 2023 · 1 comment

Comments

@xz0305
Copy link

xz0305 commented Nov 13, 2023

    out = out * (1 - occlusion_last) + encode_i 
    out = self.final(out)
    out = torch.sigmoid(out)
    out = out * (1 - occlusion_last) + deformed_source * occlusion_last

请问可以解释一下这几行代码的含义吗,我理解的是out * (1 - occlusion_last)保留未遮挡部分,再加上需要修复的源区域?

@harlanhong
Copy link
Owner

是的

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