Video model sources
The following source card retains the model provenance and verification information distributed with the original application.
# Local video enhancement profiles All three profiles use official [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) v0.2.5.0 checkpoints and the upstream SRVGGNetCompact architecture. The browser downloads only the selected ONNX model from this application's own origin. No inference service receives input video. The interface uses scenario descriptions; the technical model identities are retained here for provenance and attribution. | Interface profile | Official checkpoint | Architecture | Native scale | Neighboring context | | --- | --- | --- | --- | --- | | Everyday / 日常视频 (`everyday`) | `realesr-general-x4v3` | 64 features, 32 middle convolutions, PReLU | 4× | 34 input pixels | | Preserve texture / 保留纹理 (`detail`) | `realesr-general-wdn-x4v3` | 64 features, 32 middle convolutions, PReLU | 4× | 34 input pixels | | Animation & illustration / 动漫与插画 (`animation`) | `realesr-animevideov3` | 64 features, 16 middle convolutions, PReLU | 4× | 18 input pixels | `detail` is the official weak-denoising checkpoint, the zero-strength endpoint of the upstream general-model denoising interpolation. It is a distinct learned model, not a sharpness filter or a renamed copy of the everyday model. The animation profile is intended for animated material. These labels describe intended use, not a guarantee of quality for every input. All exports use FP32, opset 17, RGB NCHW input `input [1,3,H,W]` and output `output [1,3,4H,4W]`. Dynamic sizes and the operators already used by the existing browser runtime are retained. Output dimensions are selected by the application; each inferred tile is resized and assembled directly into the final-size canvas. No additional learned detail is claimed beyond the native 4× scale. ## Provenance and reproduction - [Official general checkpoint](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth) - [Official weak-denoising checkpoint](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-wdn-x4v3.pth) - [Official animation checkpoint](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-animevideov3.pth) - [Official architecture](https://github.com/xinntao/Real-ESRGAN/blob/master/realesrgan/archs/srvgg_arch.py) - [Official inference and denoising setup](https://github.com/xinntao/Real-ESRGAN/blob/master/inference_realesrgan.py) Exact checkpoint and ONNX hashes, byte sizes, and the exporter paths are recorded in [manifest.json](https://localupscale.app/models/manifest.json). The existing everyday model is unchanged and retains its [original export source card](https://localupscale.app/models/model-source-card.md). Additional profiles are exported locally by `scripts/prepare-upscaler-models.py` using PyTorch 2.8.0 and ONNX 1.17.0. The script verifies pinned checkpoint hashes before loading with `weights_only=True` and reuses the existing attributed architecture. With the three checkpoints in a local directory and the pinned Python dependencies from the script installed in an isolated environment: ```sh python scripts/prepare-upscaler-models.py --weights-dir /path/to/checkpoints --report /path/to/verification.json ``` ## Verification scope [profiles-verification.json](https://localupscale.app/models/profiles-verification.json) records the local export checks for all three profiles: - Every learned tensor matches the official checkpoint byte for byte (101 tensors each for everyday/detail, 53 for animation). - ONNX Runtime CPU output matches the PyTorch reference at 31×19, 64×64 and 149×91 inputs. The largest observed absolute difference is about 0.0000234, less than 0.006 of an 8-bit channel step. Different FP32 convolution kernels can accumulate in different orders; the verification limit is 0.0001. - Tiled and full-frame output agree exactly on the multi-tile input with each profile's stated neighboring context. - Learned output differs from nearest-neighbor enlargement. These checks establish parameter provenance and export correctness. They do not establish perceived quality, video temporal consistency, browser performance or device encoder support. Each model processes individual frames and does not perform motion-based temporal reconstruction. ## License The architecture and weights retain the Real-ESRGAN **BSD-3-Clause** license, copyright Xintao Wang. The complete notice is distributed as [REAL-ESRGAN-LICENSE.txt](https://localupscale.app/models/REAL-ESRGAN-LICENSE.txt). The ONNX Runtime notices remain under `ort/`.
Real-ESRGAN license
BSD 3-Clause License Copyright (c) 2021, Xintao Wang All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.