Forty-lock / PEPSI-Fast_image_inpainting_with_parallel_decoding_network

MIT License
68 stars 11 forks source link

Calculation of euclidian distance #4

Open jvhoffbauer opened 4 years ago

jvhoffbauer commented 4 years ago

Did I understand correctly, that you are using the following formula to calculate the euclidian distance in the CA-module?

d(a, b) = sqrt( ||a||^2 + ||b||^2 - 2ab )

https://github.com/Forty-lock/PEPSI-Fast_image_inpainting_with_parallel_decoding_network/blob/be4e48765e18c36248a54fe8f7efc698b2576685/module.py#L223

Many thanks, Jan

Forty-lock commented 3 years ago

yes you are right