roimehrez / contextualLoss

The Contextual Loss
http://cgm.technion.ac.il/Computer-Graphics-Multimedia/Software/Contextual/
490 stars 78 forks source link

Comparison with nearest neighbor search #7

Closed zhangmozhe closed 6 years ago

zhangmozhe commented 6 years ago

Hi, thanks for your code. I am pretty interested in the comparison between the contextual loss and the nearest neighbor search in the feature domain. The contextual loss is defined in a heuristic manner. If I understand correctly, nearest neighbor search is equivalent to minimizing the KL-divergence. Why in the paper the contextual loss always gives less artifact? Is there any intuitive explanation for this?

Thanks a lot!

roimehrez commented 6 years ago

What exactly are you asking? I don't think NN as it is minimizing KL. You can look here for more analysis of the loss.