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

Known issue and fix in training #2

Open
tcies opened this issue Jan 16, 2020 · 0 comments
Open

Known issue and fix in training #2

tcies opened this issue Jan 16, 2020 · 0 comments

Comments

@tcies
Copy link
Contributor

tcies commented Jan 16, 2020

Symptom: Fails with exception https://github.com/uzh-rpg/imips_open/blob/master/train.py#L83 , many output channels are either all 0 or all 1.

Fix:
Replace

def inlierLoss(x):
return -tf.log(x)
def outlierLoss(x):
return -tf.log(1 - x)
with

EPS = 10e-5

def inlierLoss(x):
    return -tf.log(x + EPS)


def outlierLoss(x):
    return -tf.log(tf.maximum(1 - x, EPS))

Thanks Logan Lembke from South Dakota School of Mines and Technology for the bug report and @Talasta for the fix!

I hope to get around to fix this with the appropriate testing.

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