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

Function resize_ims

diff2flow/helpers.py:158–160  ·  view source on GitHub ↗
(x: Tensor, size: int, mode: str = "bilinear", **kwargs)

Source from the content-addressed store, hash-verified

156
157
158def resize_ims(x: Tensor, size: int, mode: str = "bilinear", **kwargs):
159 # idea: blur image before down-sampling
160 return nn.functional.interpolate(x, size=size, mode=mode, **kwargs)
161
162
163def get_batch_stats(x: Tensor, stats=None):

Callers 1

extract_from_batchMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected