MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / upsample

Method upsample

timm/models/coat.py:266–268  ·  view source on GitHub ↗

Feature map up-sampling.

(self, x, factor: float, size: Tuple[int, int])

Source from the content-addressed store, hash-verified

264 in_features=dims[1], hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop)
265
266 def upsample(self, x, factor: float, size: Tuple[int, int]):
267 """ Feature map up-sampling. """
268 return self.interpolate(x, scale_factor=factor, size=size)
269
270 def downsample(self, x, factor: float, size: Tuple[int, int]):
271 """ Feature map down-sampling. """

Callers 1

forwardMethod · 0.95

Calls 1

interpolateMethod · 0.95

Tested by

no test coverage detected