MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / npmax

Function npmax

DWPose/dwpose_utils/util.py:292–297  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

290
291# get max index of 2d array
292def npmax(array):
293 arrayindex = array.argmax(1)
294 arrayvalue = array.max(1)
295 i = arrayvalue.argmax()
296 j = arrayindex[i]
297 return i, j

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected