roimehrez / contextualLoss

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

Questions about the code in CSFlow.py #4

Closed yifanw90 closed 6 years ago

yifanw90 commented 6 years ago

Dear, thanks for the awesome work! In the file CSFlow.py, i'm confused with the code 'A = Tvec @ tf.transpose(Ivec)' (Line 44), what dose '@' mean?
The paper proposes to use the Cosine distance when computing the distance d_{ij} in Equ. 2, which is computed by the function 'create_using_dotP'. I noticed there is another function 'create_using_L2' in 'CSFlow.py'. I am somewhat confused about it. I would be very appreciated if you could explain it. Thank you!

yifanw90 commented 6 years ago

Dear, I have got clear about the questions.