Closed Erik-Y closed 3 years ago
Hello @Erik-Y,
The variable aff is the affinity values for non-local neighbors with sub-pixel offsets. The proposed confidence-incorporated affinity normalization adjusts those affinities based on each non-local neighbor's confidence.
Thus, we need to calculate each non-local neighbor's confidence, which should be also sampled from the non-local neighbor's offset location in the confidence map.
hi, i am also curious about this part. I have known that we should calculate each non-local neighbor's confidence,.But ,why the offset for confidence is changed by
offset_tmp[:,0,:,:] = offset_tmp[:, 0, :, :] + hh - (self.k_f - 1) / 2
why the offset for confidence is not same with the offset for propagation process???
Hi, @zzangjinsun I understand the "The variable aff is the affinity values for non-local neighbors with sub-pixel offsets. The proposed confidence-incorporated affinity normalization adjusts those affinities based on each non-local neighbor's confidence.Thus, we need to calculate each non-local neighbor's confidence", but I don not understand "which should be also sampled from the non-local neighbor's offset location in the confidence map"
In my opinion, for every location (x,y) in (H,W), original confidence and original aff have corresponding values. Thus, its more reasonable to use the original confidence in confidence-incorporated affinity normalization. Can you give me more specific theories or some experiment results to help me? Thanks a lot.
Thank you for the important discussions on confidence, @Erik-Y , @zerowfz . Your intuition is right and I need to thoroughly check this part again after the CVPR period.
Please give me some time to check again!!
@zzangjinsun Of course. Good luck
I fixed and updated the repo.
Thank you again @Erik-Y and @zerowfz for your intuitions.
Hi, I'm very curious why do you transform confidence through affinity instead of using confidence directly in the following code.
------from nlspnmodel.py 115 ------
if self.args.conf_prop: list_conf = [] offset_each = torch.chunk(offset, self.num + 1, dim=1)