minar09 / cp-vton-plus

Official implementation for "CP-VTON+: Clothing Shape and Texture Preserving Image-Based Virtual Try-On", CVPRW 2020
https://minar09.github.io/cpvtonplus/
MIT License
343 stars 120 forks source link

Radial Basis Function Kernel for TPS Transformation (Wrong?) #96

Open Atotem opened 1 year ago

Atotem commented 1 year ago

https://github.com/minar09/cp-vton-plus/blob/ff44e465853afecfa53ba2b62b41f332e5476fe4/networks.py#L291

Hi!

I understand the Radial Basis kernel they are using is the following: U = r^2 * log( r )

However, seems to me that the function used is this one: U = r^2 * log( r^2 ), because after summing both pondered delta matrix, they don't apply root squared to the outcome.

Is there a reason to do it this way? I'm just trying to understand. I appreciate any insight.