Returns a specific labeleing data set -- the user will be asked which one.
(config)
| 219 | |
| 220 | |
| 221 | def 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 | |
| 236 | def convert2_maDLC(config, userfeedback=True, forceindividual=None): |
nothing calls this directly
no test coverage detected