Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two 2x models, WebSR GAN-S and WebSR GAN-M, and a new architecture, WebSR UNet.
What they are. Small UNets distilled from RealESR General x4 v3, designed for fast inference on integrated graphics cards.
Key features
A UNet design, which replicates the receptive field of the original RealESRGaN x4v3 model with far fewer layers (7 vs 32+), which minimizes tensor bandwidth, often the primary bottleneck on integrated graphics and apple silicon, not arithmetic density.
Uses conditional convolutions and weight banks to handle different kinds of content more effectively in one inference pass
Performance
Uses RealESRGANx4v3 as the teacher, the WebSR models run ~6x faster with ~39 dB of accuracy and an LPIPS score of 0.01 (largely imperceptible to the human eye). Performance on an M6 Macbook Pro:
gan-sgan-mx4v3Architecture
RealESRGAN:

WebSR - GAN:

Where it's coming from
These are models built for free.upscaler.video (~800k Monthly Active Users), as part of the WebSR SDK.
If you just Google "Video Upscaler", free.upscaler.video is the first result, ahead of Topaz or whatever. More info here and here.
Files
onnx/gan-s_image.onnx,onnx/gan-m_image.onnx), MITrealesr-general-x4v3(BSD-3-Clause)Let me know if you need more info