Instructions to use litert-community/CPGA-Net-LowLight-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/CPGA-Net-LowLight-LiteRT with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
CPGA-Net β LiteRT (on-device low-light enhancement, fully-GPU)
CPGA-Net (Shyandram, IJPRAI), low-light image enhancement
(brighten dark photos) via Channel Prior + Gamma Correction, converted to LiteRT and running fully on the
CompiledModel GPU (ML Drift) on Android. 0.025 M params / 0.1 MB fp16 β the smallest model in the
LiteRT-Models zoo.
On-device (Pixel 8a, Tensor G3 β verified)
| nodes on GPU | 135 / 135 LITERT_CL (full residency) |
| inference | ~2 ms (256Γ256) |
| size | 0.1 MB (fp16) |
| accuracy | device-vs-PyTorch corr 0.99999, no NaN |
image[1,3,256,256] (RGB [0,1]) β[GPU: CPGA-Net]β enhanced[1,3,256,256] ([0,1])
How it converts (litert-torch) β three numerically-exact fixes
- Gamma correction
x^Ξ³βexp(Ξ³Β·log x)βtorch.powlowers to the bannedPOW; the identityx^Ξ³ = exp(Ξ³Β·log x)is exact (base clamped to [1e-9,1]) and uses nativeEXP/LOG. - CBAM / gamma global pools β
mean(3).mean(2)andF.max_pool2d(x, (H,W)). - The dark/bright channel prior (
max/minover RGB) stays asREDUCE_MAX/REDUCE_MIN.
Banned ops NONE, β€4D, tflite-vs-torch corr 1.0, device-vs-torch corr 0.99999. Guided-filter disabled.
Preprocessing
Center-crop, resize 256Γ256, RGB scaled to [0,1], NCHW.
License
MIT. Upstream: Shyandram/CPGA-Net-Pytorch.
- Downloads last month
- 8
