Vision Models
Collection
Common computer vision class models, such as the YOLO family
β’
10 items
β’
Updated
This version of Real-ESRGAN has been converted to run on the Axera NPU using w8a8 quantization.
This model has been optimized with the following LoRA:
Compatible with Pulsar2 version: 3.4
For those who are interested in model conversion, you can try to export axmodel through
The repo of AXera Platform, which you can get the detial of guide
Chips | 64x64 -> 256x256 | 256x256 -> 1024x1024 |
---|---|---|
AX650 | 15 ms | 440 ms |
AX630C | 76 ms | 2030 ms |
Download all files from this repository to the device
(axcl) axera@raspberrypi:~/samples/realesrgan.axera $ tree -L 2
.
βββ ax630c
β βββ realesrgan-x4-256.axmodel
β βββ realesrgan-x4.axmodel
βββ ax650
β βββ realesrgan-x4-256.axmodel
β βββ realesrgan-x4.axmodel
βββ config.json
βββ main.py
βββ onnx
β βββ realesrgan-x4-256.onnx
β βββ realesrgan-x4.onnx
βββ output_test_256.jpg
βββ out_test-256.jpg
βββ test_256.jpeg
3 directories, 11 file
https://github.com/AXERA-TECH/pyaxengine
wget https://github.com/AXERA-TECH/pyaxengine/releases/download/0.1.3rc0/axengine-0.1.3-py3-none-any.whl
pip install axengine-0.1.3-py3-none-any.whl
pip install argparse numpy opencv-python
root@ax630c:/mnt/qtang/realesrgan.axera# python3 main.py --input test_256.jpeg --output test_256_20e.jpeg --model ax630/realesrgan-x4-256.axmodel
[INFO] Available providers: ['AxEngineExecutionProvider']
[INFO] Using provider: AxEngineExecutionProvider
[INFO] Chip type: ChipType.MC20E
[INFO] VNPU type: VNPUType.DISABLED
[INFO] Engine version: 2.7.2a
[INFO] Model type: 1 (full core)
[INFO] Compiler version: 3.4 3dfd5692
input.1 [1, 256, 256, 3] uint8
1895 [1, 1024, 1024, 3] float32
Original Image Shape: (243, 243, 3)
Preprocessed Image Shape: (1, 256, 256, 3)
Inference Time: 2066.72 ms
Output Shape: (1, 1024, 1024, 3)
Final Output Image Shape: (1024, 1024, 3)
root@ax630c:/mnt/qtang/realesrgan.axera#
What is M.2 Accelerator card?, Show this DEMO based on Raspberry PI 5.
(axcl) axera@raspberrypi:~/samples/realesrgan.axera $ python main.py --input test_256.jpeg --output output_test_256.jpg --model realesrgan-x4-256.axmodel
[INFO] Available providers: ['AXCLRTExecutionProvider']
[INFO] Using provider: AXCLRTExecutionProvider
[INFO] SOC Name: AX650N
[INFO] VNPU type: VNPUType.DISABLED
[INFO] Compiler version: 3.4 3dfd5692
input.1 [1, 256, 256, 3] uint8
<cdata 'char *' 0x262e54e0> [1, 1024, 1024, 3] float32
Original Image Shape: (243, 243, 3)
Preprocessed Image Shape: (1, 256, 256, 3)
Inference Time: 455.81 ms
Output Shape: (1, 1024, 1024, 3)
Final Output Image Shape: (1024, 1024, 3)
(axcl) axera@raspberrypi:~/samples/realesrgan.axera $