MCPcopy Create free account
hub / github.com/csxmli2016/DFDNet / flip

Function flip

FaceLandmarkDetection/face_alignment/utils.py:198–215  ·  view source on GitHub ↗

Flip an image or a set of heatmaps left-right Arguments: tensor {numpy.array or torch.tensor} -- [the input image or heatmaps] Keyword Arguments: is_label {bool} -- [denote wherever the input is an image or a set of heatmaps ] (default: {False})

(tensor, is_label=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

test_flip_is_labelMethod · 0.85
test_flip_is_imageMethod · 0.85

Calls 1

shuffle_lrFunction · 0.85

Tested by 2

test_flip_is_labelMethod · 0.68
test_flip_is_imageMethod · 0.68