Real-ESRGAN x4v3 LiteRT - iOS model version
2 min readupdated
This model is an adapted version of the popular Real-ESRGAN image upscaling algorithm in the LiteRT format (formerly TensorFlow Lite). The main feature of this build is that all model weights are embedded directly inside the flatbuffer file. This fixes a loading issue on iOS mobile devices where the standard version threw an error due to how external data buffers are read. The model performs a standard 4x resolution increase and will be useful for mobile app developers who need a local photo upscaler.
Key features
- iOS compatibility: Fixed loading errors on the standard TensorFlow Lite runtime for iOS.
- Embedded weights: All data buffers are combined into a single flatbuffer file for easy integration.
- Identical quality: Delivers the exact same results as the original model on supported platforms.
- Compact size: The model file size is about 3.5 MB.
What you can do
- Mobile app integration: Add local image upscaling directly on iPhones or iPads.
- Patch processing: Set up image tiling to process large frames in parts (with 128x128 pixel input resolution).
Example
The input tensor has a dimension of [1, 128, 128, 3] (NHWC format, RGB values from 0 to 1), and the output is a 4x upscaled image in NCHW format [1, 3, 512, 512]. For large images, use 128x128 tile slicing.
Read more
DetailsModel file:
realesr_general_x4v3_inline.tfliteSize: 3,549,000 bytes
Architecture: Real-ESRGAN general x4v3 in LiteRT format
License: BSD 3-Clause










Comments