MCPcopy Create free account
hub / github.com/NarcissusEx/GuardSplat / forward

Method forward

attack_utils.py:89–92  ·  view source on GitHub ↗
(self, image)

Source from the content-addressed store, hash-verified

87 self.angle = 30
88
89 def forward(self, image):
90 rand_num = random.uniform(-1, 1)
91 rotated_img = F.rotate(image, self.angle * rand_num)#, expand = True)
92 return rotated_img
93
94class ResizeAttack(nn.Module):
95 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected