Instructions to use subhashhhhhh/lumen-sky with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use subhashhhhhh/lumen-sky 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
Lumen Sky
The sky mask in Lumen's photo editor, as a LiteRT (TFLite) model for phones.
| Model | U²-Net trained for sky segmentation by xiongzhu666 (Sky-Segmentation-and-Post-processing), from the ONNX at JianyuanWang/skyseg @ 3ba8c6d |
| Licence | MIT (weights); U²-Net architecture by Qin et al. |
| File | sky.tflite, 88 MB, 16-bit float weights |
| Input | 1×320×320×3 float32 RGB, 0–255 (ImageNet normalisation is inside the model) |
| Output | 1×320×320×1 float32, the probability that each pixel is sky, 0–1 |
| Speed | 99 ms on a Snapdragon 7 Gen 1 class GPU (LiteRT 2, fp16), 1.1 s on 4 CPU threads |
Only U²-Net's fused output is kept. Converted with litert-torch (ONNX → onnxsim → onnx2torch,
fixed-size resizes) and checked against the original: the fp32 conversion matches exactly; the 16-bit
weights change the output by at most 0.001 on the CPU, and no pixel changes side of 0.5.
Credits
- U²-Net: Xuebin Qin, Zichen Zhang, Chenyang Huang, Masood Dehghan, Osmar R. Zaiane and Martin Jagersand, "U²-Net: Going Deeper with Nested U-Structure for Salient Object Detection", Pattern Recognition 2020.
- Sky weights: xiongzhu666, MIT licence.
- Downloads last month
- -