MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / graph2names

Function graph2names

deeplabcut/utils/auxfun_multianimal.py:187–191  ·  view source on GitHub ↗
(cfg, partaffinityfield_graph)

Source from the content-addressed store, hash-verified

185
186
187def graph2names(cfg, partaffinityfield_graph):
188 individuals, uniquebodyparts, multianimalbodyparts = extractindividualsandbodyparts(cfg)
189 bodypartnames = multianimalbodyparts + uniquebodyparts
190 for pair in partaffinityfield_graph:
191 print(pair, bodypartnames[pair[0]], bodypartnames[pair[1]])
192
193
194def SaveFullMultiAnimalData(data, metadata, dataname, suffix="_full"):

Callers 1

getpafgraphFunction · 0.85

Calls 1

Tested by

no test coverage detected