Skip to content

Pixelwise contrastive loss: ZeroDivisionError('float division by zero',) #26

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

Open
jankopanski opened this issue Jun 2, 2020 · 0 comments

Comments

@jankopanski
Copy link
Collaborator

SAN-822

  File "dense_correspondence/training/training_script_gdon.py", line 39, in <module>
    train.run()

  File "/home/jkopanski/code/dense_correspondence/training/training.py", line 385, in run
    blind_non_matches_b)

  File "/home/jkopanski/code/dense_correspondence/loss_functions/loss_composer.py", line 33, in get_loss
    blind_non_matches_a, blind_non_matches_b)

  File "/home/jkopanski/code/dense_correspondence/loss_functions/loss_composer.py", line 84, in get_within_scene_loss
    M_descriptor=pcl._config["M_masked"])

  File "/home/jkopanski/code/dense_correspondence/loss_functions/pixelwise_contrastive_loss.py", line 85, in get_loss_matched_and_non_matched_with_l2
    match_loss, _, _ = PCL.match_loss(image_a_pred, image_b_pred, matches_a, matches_b)

  File "/home/jkopanski/code/dense_correspondence/loss_functions/pixelwise_contrastive_loss.py", line 165, in match_loss
    match_loss = 1.0 / num_matches * (matches_a_descriptors - matches_b_descriptors).pow(2).sum()

ZeroDivisionError('float division by zero',)
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