daa233 / generative-inpainting-pytorch

A PyTorch reimplementation for paper Generative Image Inpainting with Contextual Attention (https://arxiv.org/abs/1801.07892)
MIT License
472 stars 97 forks source link

About contextual attention. #25

Open BlossomingL opened 4 years ago

BlossomingL commented 4 years ago

Hi~ First, Your implemention is awesome, thank you! But I have some question. 1.What's the meaning of 'mm' in function 'contextual_attention' 2.I'am confused that after 'xi' and 'wi_normed' conv, then conv two times It's kind of you if you could help me!

daa233 commented 4 years ago

Thanks for asking!

  1. For the 'mm' in 'contextual_attention', I followed the same naming here. From this issue, 'mm' indicates the background region after softmax.
  2. Sorry, I am not sure what you mean that 'then conv two times'.
herbiezhao commented 2 years ago

看代码,一个batch只用了一个mask,如果一个image对应一个mask的话,代码是否需要修改下?