Upscale an image with Swin2SR and Arm VGF
Review frequently asked questions
These FAQs were 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.
From your
executorch directory, run source .venv/bin/activate and then source examples/arm/arm-scratch/setup_path.sh before building or running the model.No. You’ll export a pretrained ×2 checkpoint pinned to a specific revision. The export uses
--quantization-mode none, so you don’t need calibration images.The
.pte file contains your executable model, while the .json file tells the image helper how to read the input and reconstruct the output. Keep them in the same directory with the same base name.Yes, if your image is 64 × 64 pixels and RGB. For a different input size, export a matching program first. The helper doesn’t resize or tile images automatically.
Look for
Saved super-resolved image to in the terminal output. Check that your generated image is 128 × 128 and shows the same scene without obvious corruption. You can compare it with the high-resolution reference, but the visual check isn’t a quality benchmark or performance result.