roimehrez / contextualLoss

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

some confusions about computing cosine_distance in code #9

Closed hahazhky closed 6 years ago

hahazhky commented 6 years ago

in the paper "The Contextual Loss for Image Transformation with Non-Aligned Data", x_i and y_j need to reduce the mean of the sum of y_j to compute cosine_distance, but i didn't find this operation in either create_using_L2 or create_using_dotP

roimehrez commented 6 years ago

T_features, I_features = cs_flow.center_by_T(T_features, I_features) in create_using_dotP