Algorithm 1 Training of ETDiffIR |
-
Input:
LR image , HR image , text caption c, total step T.
-
1:
Initialization: Random sample , , .
-
2:
repeat
-
3:
; ▷Enhance
-
4:
; ▷Predict noise
-
5:
; ▷Substitute score into Equation (6)
-
6:
; ▷Loss
-
7:
; ▷Gradient descent
-
8:
until converged
|