tasn icon indicating copy to clipboard operation
tasn copied to clipboard

questions about Structure_Att and Detail_Att

Open yogsin opened this issue 5 years ago • 1 comments

Hi, thanks for your job! There are two points in the code I cannot understand: 1.line 133 in tasn-mxnet/example/tasn/model.py: mx.nd.batch_dot(b.reshape((n,c,1)), f.reshape((n,c,w*w)), True, False).reshape((n,1,w,w)) b is sorted but f not, i don't think their attention channels can match one by one.

2.the channels in both Structure_Att and Detail_Att are filtered to make sure that each channel is unique,but why you think the channels with the same sum value can be represented by one of these channels?

looking forward to your reply.

yogsin avatar Jun 25 '19 15:06 yogsin

@yogsin Sorry for my late reply, and thanks for your valuable comments.

  1. I think you are right, and I will fix this bug.
  2. I thought it is a rare case for two different attention maps share the same sum value, and of course, you can try a more strict unique selecting strategy.

Heliang-Zheng avatar Jul 16 '19 03:07 Heliang-Zheng