| Algorithm 1 Weights Training of the Denoiser and ResFi | |
| Input: a set of noisy images n, labels l, max iterations of Denoiser maxid, max iterations of ResFi maxir, learning rate α and β | |
|
Output: Trained weights w∗ //Weight training of Denoiser | |
| Generate Bernoulli sampled image pairs of a noisy image: | |
| Randomly initialize θ | |
|
for iteration = 1: maxid
do Update the Denoiser by descending the stochastic gradient: | |
| end | |
| Obtain the clean image: | |
| //Weight training of ResFi Randomly initialize w for iteration = 1: maxid do Randomly select a mini-batch of N training samples: | |
| Update the ResFi by descending the stochastic gradient: | |
|
End Obtain the optimal weights: w∗ |