MiguelMonteiro / permutohedral_lattice

Permutohedral Lattice C++/CUDA implementation + TensorFlow Op (CPU/GPU)
83 stars 18 forks source link

The purpose of the reverse in the blur stage #14

Closed wang-ps closed 5 years ago

wang-ps commented 5 years ago

First of all, thank you so much for sharing your implementation. Could you please explain why the parameter reverse is set to false in the bilateral filter and true in the back propagation stage?

MiguelMonteiro commented 5 years ago

This was something described in the original code and paper for the CRFasRNN gradients. When I coded it I just followed their lead and didn't really understand why. In time I have come to realise that this is not needed since blurring in reverse is virtually the same as regular blurring.

wang-ps commented 5 years ago

Thanks for your reply!