BasicSR icon indicating copy to clipboard operation
BasicSR copied to clipboard

num_in_ch and num_out_ch in EDSR, RCAN (might be a bug)

Open kktsubota opened this issue 4 years ago • 0 comments

The implementation of ESDR and RCAN can take any number as num_in_ch. However, this contradicts the argument name rgb_mean that assumes num_in_ch=3. The following operation for rgb_mean also assumes num_in_ch=3. https://github.com/xinntao/BasicSR/blob/master/basicsr/archs/edsr_arch.py#L42

Therefore, it might be better to delete the num_in_ch argument setting num_in_ch=3. Setting num_out_ch=3 also might be better because rgb_mean is added in the forward pass.

kktsubota avatar Apr 24 '22 14:04 kktsubota