Below you will find pages that utilize the taxonomy term “pytorch”
Posts
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’d like to explain more of the actual image processing that motivated me. It started from tinkering with Apple’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 I’ll focus on just two main tasks that differ from the last notebook:
Posts
Frame-by-frame video processing in a Jupyter Notebook with PyTorch
Today’s goal is just to load a video, display individual frames in the output from a Jupyter notebook cell, and write the video back out to a new file. In the middle I’ll do a little processing on the video frames. The processing is beside the point today - I just want to make the input, interaction, and output work really well so that later I can focus more on that processing step in the middle.
Posts
A local RAG for local memories
I read a lot. But I don’t read the way I used to read. I used to read books. Now I read articles online, conversation threads, and plenty of Wikipedia. Reading for me now feels a lot less structured and a lot more sprawling than it was when I was younger. It’s not just the time in my life that’s passed though, the kinds of reading material available have changed a lot.