MCPcopy Create free account
hub / github.com/MotrixLab/ADHMR / flip

Function flip

ADHMR/lib/utils/transforms.py:509–513  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

507
508
509def flip(x):
510 assert (x.dim() == 3 or x.dim() == 4)
511 dim = x.dim() - 1
512
513 return x.flip(dims=(dim,))
514
515
516def flip_heatmap(heatmap, joint_pairs, shift=False):

Callers 3

flip_heatmapFunction · 0.85
flip_heatmap_coordFunction · 0.85
flip_heatmap_dzFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected