Downloads · 30 days
11
26% of all-time downloads
mlboydaisuke/MoGe-2-LiteRT
MoGe-2-LiteRT is a depth estimation model from mlboydaisuke. Use it for the depth estimation task on the model card, and read the license before you ship it in a product. It is set up for litert. The card lists the license as mit.
On-device LiteRT (.tflite) conversion of MoGe-2 (CVPR'25 Oral) monocular geometry estimation, converted from Ruicheng/moge-2-vits-normal (DINOv2 ViT-S backbone, 35M params).
Downloads · 30 days
11
26% of all-time downloads
All-time downloads
43
Public
Repo size
136 MB
Likes
0
Public
Click a slice to open those files.
.tflite136 MB · 100%
From the Hugging Face model README
On-device LiteRT (.tflite) conversion of
MoGe-2 (CVPR'25 Oral) monocular geometry
estimation, converted from Ruicheng/moge-2-vits-normal
(DINOv2 ViT-S backbone, 35M params).
A single forward pass turns one RGB image into an affine 3D point map, surface normals, a confidence mask, and a metric scale — enabling depth, surface normals, and a rotatable 3D point cloud on a phone.
The model runs fully on the LiteRT CompiledModel GPU accelerator (ML Drift):
all 836 ops are GPU-native, no CPU fallback, no Flex ops.
| File | Size | Description |
|---|---|---|
moge.tflite | 136 MB | FP32 single-graph model, GPU-compatible |
[1, 3, 448, 448] float32, NCHW, RGB normalized to [0, 1]
(ImageNet mean/std is applied inside the graph).points [1, 448, 448, 3] — affine point map (exp remap: [xy·exp(z), exp(z)])normal [1, 448, 448, 3] — L2-normalized surface normalsmask [1, 448, 448, 1] — sigmoid confidence (> 0.5 = valid)scale [1, 1, 1, 1] — metric scale factorval model = CompiledModel.create(
context.assets, "moge.tflite",
CompiledModel.Options(Accelerator.GPU), null
)
val inputs = model.createInputBuffers()
val outputs = model.createOutputBuffers()
inputs[0].writeFloat(nchwFloatArray) // [1,3,448,448], RGB [0,1]
model.run(inputs, outputs)
val points = outputs[0].readFloat() // identify the 4 outputs by element count + range
A complete Android sample (gallery → normal map + depth) is available in google-ai-edge/litert-samples.
Converted with litert-torch (NCHW preserved — required for ViT attention accuracy). Making DINOv2 + the ConvStack decoder fully GPU-compatible required nine graph rewrites (LayerScale bake, fused-qkv decomposition, position-embedding bake, ConvTranspose → bilinear+1×1, etc.). Verified: all ops GPU-native, output correlation ≈ 1.0 vs. the PyTorch reference.
Ruicheng/moge-2-vits-normal; all credit to the
original authors (Microsoft Research).Want a different model on-device? Open a request — free, open weights only; the export and its measured numbers get published publicly.
<!-- /funnel:v1 -->