MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / up

Function up

monai/visualize/visualizer.py:31–35  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

29 """
30
31 def up(x):
32 linear_mode = [InterpolateMode.LINEAR, InterpolateMode.BILINEAR, InterpolateMode.TRILINEAR]
33 interp_mode = linear_mode[len(spatial_size) - 1]
34 smode = str(interp_mode.value)
35 return F.interpolate(x, size=spatial_size, mode=smode, align_corners=align_corners) # type: ignore
36
37 return up

Callers 4

decodeMethod · 0.85
_get_vae_lossMethod · 0.85

Calls

no outgoing calls

Tested by 2