You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Thank you for the great paper and code. It's been really helpful to me!
I believe there might be an issue with function compute_contra_memobank_loss. I'd appreciate it if you clarify it for me.
The article states that:
"For i-th labeled image, a qualified negative sample for class c should be: (a) not belonging to class c; (b) difficult to distinguish between class c and its ground-truth category."
However, we see a different thing in compute_contra_memobank_loss:
For the labeled samples, negative_mask is formed by the conjunction label_l[:, i] == 0 (from class_mask) and label_l[:, i] == 1 (from high_valid_pixel), so it will always be False:
For unlabeled samples, negative_mask will be true if high_valid_pixel & class_mask_u (the teacher says the pixel label is i with high entropy (high_valid_pixel), and the student says it isn't with high entropy (prob_indices[..., low_rank:high_rank].eq(i)).
Therefore, we believe all labeled reps are being discarded. Does that make sense?
Cheers,
The text was updated successfully, but these errors were encountered:
Hello! Thank you for the great paper and code. It's been really helpful to me!
I believe there might be an issue with function
compute_contra_memobank_loss
. I'd appreciate it if you clarify it for me.The article states that:
However, we see a different thing in
compute_contra_memobank_loss
:For the labeled samples,
negative_mask
is formed by the conjunctionlabel_l[:, i] == 0
(fromclass_mask
) andlabel_l[:, i] == 1
(fromhigh_valid_pixel
), so it will always beFalse
:For unlabeled samples,
negative_mask
will be true ifhigh_valid_pixel & class_mask_u
(the teacher says the pixel label isi
with high entropy (high_valid_pixel
), and the student says it isn't with high entropy (prob_indices[..., low_rank:high_rank].eq(i)
).Therefore, we believe all labeled reps are being discarded. Does that make sense?
Cheers,
The text was updated successfully, but these errors were encountered: