Masking video backgrounds with Apple DepthPro and PyTorch

Last year I wrote about loading and saving video in a Jupyter Notebook for frame-by-frame processing with PyTorch. Today I&rsquo;d like to explain more of the actual image processing that motivated me. It started from tinkering with Apple&rsquo;s Depth Pro model. I just wanted to see how it performed with some arbitrary video and maybe use it to separate the background from the foreground. Today…