MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / __init__

Method __init__

encoders/dinov2/hub/utils.py:24–26  ·  view source on GitHub ↗
(self, multiple)

Source from the content-addressed store, hash-verified

22
23class CenterPadding(nn.Module):
24 def __init__(self, multiple):
25 super().__init__()
26 self.multiple = multiple
27
28 def _get_pad(self, size):
29 new_size = math.ceil(size / self.multiple) * self.multiple

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected