Creating video from analysis with a white background and just the skeleton

I would like to create new labeled videos with the skeleton on a white background. I understand that with the save_frames option it is using matplotlib so it is somewhat ‘customizable’ (if that is a word) so does anyone have any help as to make the frames in the new mp4 files I create, just have a white background with the skeleton? From the help, I had the following -

deeplabcut.create_labeled_video(’/analysis/project/horse/config.yaml’,[’/analysis/project/videos/’],videotype=‘mp4’,displayedbodyparts=‘All’,draw_skeleton=‘True’,save_frames=‘True’)

I wasnt sure what to add into the command to make the frame background just white (not the images of the video itself) and just see the skeleton across the video.

1 Like

This function does not exist right now. But you could do that by just commenting out this line: https://github.com/AlexEMG/DeepLabCut/blob/3d622cd3ef12ee632484a805ab59434fe08c1441/deeplabcut/utils/make_labeled_video.py#L194