Skip to main content
. 2021 Feb 19;23(2):239. doi: 10.3390/e23020239
Algorithm 1: Training details of FusionADA
 Parameter definitions
NG, ND: The numbers of steps for training G, D.
Lmax, Lmin and LGmax are applied to determine a range when training.
Lmax and Lmin mean the adversarial losses of G and D.
LGmax: the total loss of G.
 We set Lmax=1.387, Lmin=1.386, and LGmax=0.1 in the first batch empirically in our work.
  • 1

    Initialize θG for G; θD for D.

  • 2

    For each training iteration:

  • 3
    Train DiscriminatorD:
    • Sample n VI patches {V1,,Vn} and n corresponding IR patches {I1,,In};
    • Acquire generated data {F1,,Fn}
    • Update Discriminator parameters θD by GradientDescentOptimizer to minimize LD in Equation (9); (step I)
    • While LD>LmaxandND<10, repeat step I. NDND+1;
    • Train GeneratorG:
    • Sample n VI patches {V1,,Vn} and n corresponding IR patches {I1,,In};
    • Acquire generated data {F1,,Fn}
    • Update parameters θG by RMSPropOptimizer for minimizing LG in Equation (2); (step II)
    • While LD<LminandNG<10, repeat step II. NGNG+1;
    • While LG>LGmaxandNG<10, repeat step II. NGNG+1;