MCPcopy Create free account
hub / github.com/CompVis/diff2flow / __init__

Method __init__

diff2flow/dataset/image_preprocessing.py:7–9  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

5
6class CenterCropResize(nn.Module):
7 def __init__(self, size):
8 super().__init__()
9 self.size = size
10
11 def forward(self, x):
12 h, w = x.shape[-2:]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected