MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / returnlabelingdata

Function returnlabelingdata

deeplabcut/utils/auxfun_multianimal.py:221–233  ·  view source on GitHub ↗

Returns a specific labeleing data set -- the user will be asked which one.

(config)

Source from the content-addressed store, hash-verified

219
220
221def returnlabelingdata(config):
222 """Returns a specific labeleing data set -- the user will be asked which one."""
223 cfg = auxiliaryfunctions.read_config(config)
224 videos = cfg["video_sets"].keys()
225 video_names = [Path(i).stem for i in videos]
226 folders = [Path(config).parent / "labeled-data" / Path(i) for i in video_names]
227 for folder in folders:
228 print("Do you want to get the data for folder:", folder, "?")
229 askuser = input("yes/no")
230 if askuser == "y" or askuser == "yes" or askuser == "Ja" or askuser == "ha": # multilanguage support :)
231 fn = os.path.join(str(folder), "CollectedData_" + cfg["scorer"] + ".h5")
232 Data = pd.read_hdf(fn)
233 return Data
234
235
236def convert2_maDLC(config, userfeedback=True, forceindividual=None):

Callers

nothing calls this directly

Calls 2

keysMethod · 0.80
read_configMethod · 0.45

Tested by

no test coverage detected