# Background removal worker for a remote machine with an NVIDIA GPU. matte.ts copies this script to # the remote machine together with the camera track and runs it in a temporary directory that holds # in.webm. It runs the same Robust Video Matting model as the local path, through onnxruntime with # the CUDA execution provider, and writes out.webm with the ffmpeg arguments given in the spec, so # the result matches a local run, except that the local path also skips the model on some frames # with little motion (see matte.ts); here the model is fast, so every distinct frame is processed. # A frame identical to the previous one (as when the decoder repeats frames of a camera that # delivered fewer than 30 per second) gets the same output without running the model. Stage changes and progress are reported on stderr as # "takes:stage