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

texture loss weights #15

Open
r1ckya opened this issue Jun 20, 2019 · 2 comments
Open

texture loss weights #15

r1ckya opened this issue Jun 20, 2019 · 2 comments

Comments

@r1ckya
Copy link

r1ckya commented Jun 20, 2019

Сould you explain where these coefficients come from? Thanks.

self.a1, self.a2, self.a3 = -20., -20, -20

@ZZUTK
Copy link
Owner

ZZUTK commented Jun 26, 2019

We got them from experiments, i.e., the center and slope of the sigmoid-like function are set according to the mean and variance of the similarity between matched patches. More specifically, the center could be considered as the threshold to separate similar and dissimilar matchings, and the slop controls the smoothness/sharpness of the transition between two ends. Actually, we considered learning those params during training, which should be more adaptive than manual setting.

@r1ckya
Copy link
Author

r1ckya commented Jun 27, 2019

I am confused about a_i being < 0, in the paper you propose to weight loss by the best matching score between normalized content and normalized conditional patches (as I understand). And it seems reasonable to penalize dissimilar patches less, but setting a_i < 0 seems to lead to opposite effect (sigma(-20weights + 0.65) is decreasing function), could you help me to understand your choise of setting a_i < 0?

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