TensorStack-AI / OnnxStack

C# Stable Diffusion using ONNX Runtime
Apache License 2.0
221 stars 33 forks source link

Video Stream Support #120

Closed saddam213 closed 9 months ago

saddam213 commented 9 months ago

Upscale and StableDiffusion video pipelines use a large amount of RAM if the video resolution is large or it has a long duration.

At the moment video processing is buffered as we load all frames into RAM, this PR will introduce some methods to stream a video from disk frame by frame while writing each frame back to disk. This will reduce ram usage to a single input and output frame instead of full input + output video size.

Tasks:

This should also enable live streaming via webcam in theory