jiaw-z / FCStereo

[CVPR'22] Revisiting Domain Generalized Stereo Matching Networks from a Feature Consistency Perspective
MIT License
53 stars 3 forks source link

About the StereoContrastiveLoss #5

Open SpadeLiu opened 2 years ago

SpadeLiu commented 2 years ago

Hi,

Should the label (Line 75) for stereo contrastive loss be a one-hot vector? It seems the label in the code is a all-zero vector.

On the other hand, when we generate random shift for the negative samples (Line 151~Line 164), why we split "n_neg" as "shift1" and "shift2"?