LiveActionSR-2x
Real-Time Video Super-Resolution
2 min readupdated
Two miniature models for 2x upscaling (doubling resolution), created specifically for browser-based streaming video and TV series. The models were trained on frames compressed with x264, x265, and SVT-AV1, so they are optimized for streaming rather than clean photographs. They run via WebGPU as shaders and are designed to execute on integrated or gaming GPUs with minimal per-frame processing time.
Key features
- Two versions: a compact balanced model (12k parameters) and a higher-quality quality model (48k parameters).
- Extremely high processing speed: frame processing takes from 1.3 to 9.9 milliseconds depending on the resolution and GPU.
- Improved PSNR-Y metric compared to the classic Lanczos algorithm on test datasets.
- Support for integration via a special ArtPlayer plugin and export to ONNX and safetensors.
What you can do
- Add an upscaling plugin for real-time streaming video to the ArtPlayer web player.
- Run the model via ONNX Runtime for local video stream processing.
- Use the PyTorch weights in the repository's training code for custom experiments.
Example
import Artplayer from 'artplayer';
import liveActionSR from 'artplayer-plugin-liveaction-sr';
new Artplayer({
container: '#player',
url: 'film.m3u8',
plugins: [liveActionSR({
models: {
balanced: '[https://huggingface.co/PianoNic/LiveActionSR-2x/resolve/main/balanced.json](https://huggingface.co/PianoNic/LiveActionSR-2x/resolve/main/balanced.json)',
quality: '[https://huggingface.co/PianoNic/LiveActionSR-2x/resolve/main/quality.json](https://huggingface.co/PianoNic/LiveActionSR-2x/resolve/main/quality.json)',
},
})],
});Read more
DetailsArchitecture: 3x3 convolutions, ReLU activation functions, and depth_to_space with a bilinear residual.
Training: L1 loss function, AdamW optimizer, 64x64 patches, bf16 format on an RTX 5080.
Limitations: strictly 2x upscaling, color is processed separately (bilinearly), HDR requires preliminary mapping.










Comments