MCPcopy Create free account
hub / github.com/TencentARC/MotionCtrl / ismap

Function ismap

lvdm/common.py:60–63  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

58 return tensor.mean(dim=list(range(1, len(tensor.shape))))
59
60def ismap(x):
61 if not isinstance(x, torch.Tensor):
62 return False
63 return (len(x.shape) == 4) and (x.shape[1] > 3)
64
65def isimage(x):
66 if not isinstance(x,torch.Tensor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected