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

Function get_preds_fromhm

FaceLandmarkDetection/face_alignment/utils.py:132–170  ·  view source on GitHub ↗

Obtain (x,y) coordinates given a set of N heatmaps. If the center and the scale is provided the function will return the points also in the original coordinate frame. Arguments: hm {torch.tensor} -- the predicted heatmaps, of shape [B, N, W, H] Keyword Arguments: ce

(hm, center=None, scale=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

test_getpredsMethod · 0.85

Calls 1

transformFunction · 0.85

Tested by 1

test_getpredsMethod · 0.68