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

Method forward

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

Source from the content-addressed store, hash-verified

77 self.scale = 0.4
78
79 def forward(self, image):
80 cw, ch = [int(self.scale * x) for x in image.shape[-2:]]
81 cropped_img = F.center_crop(image, (cw, ch))
82 return cropped_img
83
84class RotationAttack(nn.Module):
85 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected