proteus1991 / GridDehazeNet

This repo contains the official training and testing codes for our paper: GridDehazeNet: Attention-Based Multi-Scale Network for Image Dehazing.
https://jhc.sjtu.edu.cn/~xiaohongliu/
243 stars 54 forks source link

Feature addition with attention code question #9

Closed Ikhwansong closed 4 years ago

Ikhwansong commented 4 years ago

Hi, Nice to see you again! Thank you for your kind reply last.

I have a question about the line of code for feature addition with attention.

image

Is it different, compare of below ?

x_index[i,j] = self.rdbmodule['{}{}'.format(i, j-1)](x_index[i][j-1])

It seems same operation.

thank you

proteus1991 commented 4 years ago

Your write-on code is the case while the attention is not used.

Thanks,

Xiaohong