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
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support