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

amb_eye_lo #59

Open
kike-0304 opened this issue Apr 19, 2024 · 0 comments
Open

amb_eye_lo #59

kike-0304 opened this issue Apr 19, 2024 · 0 comments

Comments

@kike-0304
Copy link

kike-0304 commented Apr 19, 2024

aud att loss (regions out of face should be static)

    if self.opt.amb_aud_loss and not self.opt.torso:
        ambient_aud = outputs['ambient_aud']
        loss_amb_aud = (ambient_aud * (~lowface_mask.view(-1))).mean()
        # gradually increase it
        lambda_amb = step_factor * self.opt.lambda_amb 
        loss += lambda_amb * loss_amb_aud

    # eye att loss
    if self.opt.amb_eye_loss and not self.opt.torso:
        ambient_eye = outputs['ambient_eye']
        loss_cross = ((ambient_eye)*(lowface_mask.view(-1))).mean()
        lambda_amb = step_factor * self.opt.lambda_amb
        loss += lambda_amb * loss_cross
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