CollectedData.csv and .h5 are not updating with changes to frames


I am attempting to train the dataset post labeling and checking the labels, however I get an error that a particular frame file is missing. Usually those frames were deleted by me, but after saving and quitting and attempting to move forward I still get the error that the frames are not found.
I am not sure how to get around this without having to re-label all my videos again. Any help would be appreciated.

Hi Pari, is there a reason you deleted them? This would cause this issue, and the way to fix it is to restore it, unfortunately… once you start labeling, all the images are indexed; we do not want to drop empty frames, as that is used in training too - a positive keypoint example is as valuable as a keypoint not shown!

I got around the problem, since I deleted frames post labeling i needed to call deeplabcut.dropannotationfileentriesduetodeletedimages(path_config)