BasicSR
BasicSR copied to clipboard
num_in_ch and num_out_ch in EDSR, RCAN (might be a bug)
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.