Real ESRGAN Example
This document explains how to run Real-ESRGAN-x4plus on Radxa Dragon Q6A using the QAI AppBuilder Python library. Image Super-Resolution Model.
Install QAI AppBuilder
tip
Please refer to QAI AppBuilder Installation Guide
Run the Example
Install Dependencies
Device
pip3 install requests tqdm qai-hub py3_wget opencv-python torch
Run the Script
-
Navigate to the example directory
Devicecd ai-engine-direct-helper/samples/linux/python
-
Prepare the input image. The following image is used as an example:
Input Image
-
Execute the inference
Devicepython3 real_esrgan_x4plus/real_esrgan_x4plus.py
(.venv) ubuntu@ubuntu:~/git_clone/ai-engine-direct-helper/samples/linux/python$ python3 real_esrgan_x4plus/real_esrgan_x4plus.py
Current file directory: /home/ubuntu/git_clone/ai-engine-direct-helper/samples/linux/python/real_esrgan_x4plus
/prj/qct/webtech_scratch20/mlg_user_admin/qaisw_source_repo/rel/qairt-2.37.1/point_release/SNPE_SRC/avante-tools/prebuilt/dsp/hexagon-sdk-5.4.0/ipc/fastrpc/rpcmem/src/rpcmem_android.c:38:dummy call to rpcmem_init, rpcmem APIs will be used from libxdsprpc
/prj/qct/webtech_scratch20/mlg_user_admin/qaisw_source_repo/rel/qairt-2.37.1/point_release/SNPE_SRC/avante-tools/prebuilt/dsp/hexagon-sdk-5.4.0/ipc/fastrpc/rpcmem/src/rpcmem_android.c:42:dummy call to rpcmem_deinit, rpcmem APIs will be used from libxdsprpc
1123.1ms [WARNING] Time: model_destroy realesrgan 9.12 -
Output Results
Output Image