Skip to main content
. 2023 Feb 1;25(2):272. doi: 10.3390/e25020272
Algorithm 1. Multi-factor Modifier
Input: a set of face images I with face domain identity FaceIDk and face attributes Ak,k  Φ. Each target face (de-identified face) Fp has one password Pt, t  Φ. Training iteration Jk
Output: Multi-factor modifier M and Discriminator V
  1. fori=1 to Jkdo

  2.    Randomly select images Ii with face domain identity FaceIDi and randomly select image It with face domain label FaceIDt. Besides, FaceIDi is different from FaceIDt, i, t  Φ

  3.    Update Discriminator V with the following objective function:

  4.     Ldiscriminator =Ladv+Lrec_cls

  5.    if (i + 1) mod 5 = 0 then

  6.      Update Modifier M with the following objective function:

  7.      Lf=λbLb+λattr_clsLattr_cls+λadvLadv+λfeatLfeat+λrecLrec+        λdomain_clsLdomain_cls

         Where Lf defined in Equation (12), respectively.

  8.    end if

  9. end for

  10. Repeat step 1 to step 10 until convergence

  11. returnM and V