Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- executorch
|
| 5 |
+
- xnnpack
|
| 6 |
+
- pte
|
| 7 |
+
- on-device
|
| 8 |
+
- image-to-image
|
| 9 |
+
- super-resolution
|
| 10 |
+
base_model:
|
| 11 |
+
- eugenesiow/edsr-base
|
| 12 |
+
---
|
| 13 |
+
# edsr_base_x4 — ExecuTorch XNNPACK
|
| 14 |
+
|
| 15 |
+
`edsr_base_x4_xnnpack_fp32.pte` (6.1 MB, fp32, XNNPACK-delegated)
|
| 16 |
+
|
| 17 |
+
- **Source**: eugenesiow/edsr-base (super-image)
|
| 18 |
+
- **License**: Apache-2.0
|
| 19 |
+
- **Input**: [[1, 3, 128, 128]] — RGB 0-1, 128x128 tile
|
| 20 |
+
- **Output**: SR image [1,3,512,512] RGB 0-1
|
| 21 |
+
|
| 22 |
+
## Verification (Mac arm64, executorch 1.4.0, torch 2.13.0)
|
| 23 |
+
|
| 24 |
+
Parity vs torch fp32 eager on random input:
|
| 25 |
+
|
| 26 |
+
| output | shape | max_abs_diff | corr |
|
| 27 |
+
|--------|-------|--------------|------|
|
| 28 |
+
| 0 | [1, 3, 512, 512] | 3.576e-06 | 1.000000 |
|
| 29 |
+
|
| 30 |
+
Median latency over 10 runs (single Mac process, reference only — device numbers to follow):
|
| 31 |
+
ExecuTorch 39.6 ms vs torch eager 78.2 ms.
|
| 32 |
+
|
| 33 |
+
## Conversion
|
| 34 |
+
|
| 35 |
+
torch.export -> to_edge_transform_and_lower(XnnpackPartitioner) -> .pte
|
| 36 |
+
(conversion scripts: `convert/` in the conversion repo)
|