Upscale an image with Swin2SR and Arm VGF
Who is this for?
This Learning Path is for machine learning and graphics developers getting started with image super-resolution using ExecuTorch and Arm Vulkan Graph Format (VGF).
What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Prepare ExecuTorch, the Arm ML SDK for Vulkan, and a sample image.
- Export a pretrained Swin2SR model as a VGF-backed ExecuTorch program.
- Build the host runner and upscale a 64 × 64 image to 128 × 128.
- Check the output dimensions and compare the result with the high-resolution reference.
Prerequisites
Before starting, you'll need the following prerequisites:
- A 64-bit Linux host (AArch64 or x86_64) with a Vulkan 1.3 GPU and driver that support shaderFloat64, as required by the packaged ML SDK emulation layer
- Python 3.12 with development headers and venv support, Git, curl, xz-utils, and a C++17 compiler
- An internet connection to download ExecuTorch, model weights, and the Arm ML SDK dependencies
- Basic familiarity with Python and command-line tools
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You’ll set up a Linux host and sample image, export a pretrained Swin2SR ×2 model as an ExecuTorch program, and build a host runner for Arm VGF. Then, you’ll upscale a 64 × 64 image to 128 × 128. Finally, you’ll check the output dimensions and compare its reconstructed detail with the high-resolution reference.