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
The paper says
" ... to account for the relative importance among the K neighbors, we further regress a spatial weight W ... Then, we modify F_L via a convolution with W, followed by a summation along the K-dimension to obtain the weighted rN × C feature map."
I have not run this repo yet, just looking through the local refinement code to understand what the above statement means.
In the implement, the convolution is actually the tf.matmul operation between F_L and W, and the summation is replaced by the conv2d and squeeze operations. My questions are:
the conv2d + squeeze is not the same as summation (should be a weighted version of the latter);
F_L is of shape [B,N,C,K] after matmul, then it is sent to conv2d without reshaping into [B,N,K,C] first. With the kernel_size=[1, get_shape()[2]]=[1,C], the resulted shape should be [B,N,1,K] rather than [B,N,1,C].
The text was updated successfully, but these errors were encountered:
The paper says " ... to account for the relative importance among the K neighbors, we further regress a spatial weight W ... Then, we modify F_L via a convolution with W, followed by a summation along the K-dimension to obtain the weighted rN × C feature map."
I have not run this repo yet, just looking through the local refinement code to understand what the above statement means.
In the implement, the convolution is actually the tf.matmul operation between F_L and W, and the summation is replaced by the conv2d and squeeze operations. My questions are:
the conv2d + squeeze is not the same as summation (should be a weighted version of the latter);
F_L is of shape [B,N,C,K] after matmul, then it is sent to conv2d without reshaping into [B,N,K,C] first. With the kernel_size=[1, get_shape()[2]]=[1,C], the resulted shape should be [B,N,1,K] rather than [B,N,1,C].
The paper says
" ... to account for the relative importance among the K neighbors, we further regress a spatial weight W ... Then, we modify F_L via a convolution with W, followed by a summation along the K-dimension to obtain the weighted rN × C feature map."
I have not run this repo yet, just looking through the local refinement code to understand what the above statement means.
In the implement, the convolution is actually the
tf.matmul
operation between F_L and W, and the summation is replaced by theconv2d
andsqueeze
operations. My questions are:conv2d + squeeze
is not the same as summation (should be a weighted version of the latter);conv2d
without reshaping into [B,N,K,C] first. With the kernel_size=[1, get_shape()[2]]=[1,C], the resulted shape should be [B,N,1,K] rather than [B,N,1,C].The text was updated successfully, but these errors were encountered: