(self)
| 112 | # these two functions are implemented based on WatermarkAttacker (https://github.com/XuandongZhao/WatermarkAttacker). |
| 113 | class VAEAttack(nn.Module): |
| 114 | def __init__(self): |
| 115 | super().__init__() |
| 116 | |
| 117 | def forward(self, image): |
| 118 | out = self.model(image[None]) |