to_lp_file#
- movement.io.save_poses.to_lp_file(ds, file)[source]#
Save a
movementdataset to a LightningPose file.- Parameters:
- Return type:
Notes
LightningPose saves pose estimation outputs as .csv files, using the same format as single-animal DeepLabCut projects. Therefore, under the hood, this function calls
movement.io.save_poses.to_dlc_file()withsplit_individuals=True. This setting means that each individual is saved to a separate file. If the dataset contains more than one individual, the individual’s name is appended to the file path, just before the file extension, i.e. “/path/to/filename_individual1.csv”. If it contains only one individual, the given file path is used as is.See also
to_dlc_fileSave dataset to a DeepLabCut-style .h5 or .csv file.