zzangjinsun / NLSPN_ECCV20

Park et al., Non-Local Spatial Propagation Network for Depth Completion, ECCV, 2020
MIT License
321 stars 57 forks source link

Why are the parameters of `conv_offset_aff ` set to zeros? #22

Closed EthanZhangYi closed 3 years ago

EthanZhangYi commented 3 years ago

Why are the parameters of conv_offset_aff initialized to zeros specially in NLSPN? (line 56-57) https://github.com/zzangjinsun/NLSPN_ECCV20/blob/46dfa4c42fc380a1261b4f7175753b897ec9bfb0/src/model/nlspnmodel.py#L52-L57

zzangjinsun commented 3 years ago

Hi @EthanZhangYi. Sorry for the late reply.

With the zero-initialization, offset and affinity values are zero-initialized too. If you don't want it, please comment those lines out.