|
Algorithm 2 HAG-NET generate adversarial embedding examples |
| Input: |
Carrier image Ico, target attack label Tco, accompanying switch, secret message Min, pre-trained target classification network C, maximum training number e. |
| Output: |
Encoder parameters , decoder parameters and adversarial stego example
|
| 1: |
← rand, ← rand, ←rand//parameter initialization |
| 2: |
for i ←1,…, e do
|
| 3: |
← rand
|
| 4: |
Generating
by Algorithm 1
|
| 5: |
=
|
| 6: |
=
|
| 7: |
If
switch = True then
|
| 8: |
|
| 9: |
Else
|
| 10: |
|
| 11: |
end if
|
| 12: |
=
|
| 13: |
← //Update the parameters to
|
| 14: |
=
|
| 15: |
=
|
| 16: |
=
|
| 17: |
=
|
| 18: |
Backward
|
| 19: |
Update encoder’s parameters and decoder’s parameters
|
| 20 |
end for |
| 21: |
//Save the optimal parameters of encoder E, decoder D
|
| 22: |
= //Output Adversarial Steganographic example |