Skip to content
ModelsThatRun

MoGe-3

Microsoft's metric monocular geometry with sparse 3D refinement for finer detail: depth, a point map and normals from one photo, two sizes, MIT.

Size

Commercial use OK for size vitl: code MIT, weights MIT. Measured on our RTX 4090: 146 ms median, 3.2 GiB VRAM peak. PyTorch weights, 1.38 GB.

License

Commercial use OK

Code
MITchecked 3 Dec 2026
Weights
MITall sizes, checked 3 Dec 2026

On our RTX 4090, measured

146ms median

p90 148 ms, fp16, batch 1, 1022x686

VRAM peak
3.2 GiB
Status
Runs as is
Environment, 3 Dec 2026

NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, Python 3.12.9, microsoft/MoGe@74fbce054ebed49800de42d0ad0e83495065719a. Baseline 863 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.

Accuracy

Not yet scored

Weights

PyTorch

Size
1.38 GB
sha256
9b41b7b9f65ad80aab7ad686f5e9cc0d1fd33f1964022618dfbcd52fc1fb7925
Download vitl weights

Same photos and one score threshold for every model of this task. Failures are marked.

Sizes

SizeLatencyVRAMAccuracyWeightsRunsLicense
vitl146 ms1022x6863.2 GiBNot yet scored1.38 GBAs isCommercial OK
vitg252 ms1022x6867.9 GiBNot yet scored4.66 GBAs isCommercial OK

Estimated on other GPUs

Estimate, not measured. Worked out from our RTX 4090 run and NVIDIA's spec sheets. Each kind of GPU work is scaled by that GPU's peak for it: tensor cores at the precision the kernels used, CUDA cores, or memory bandwidth. The CPU's part of each call is kept at what it took on our Intel Core i7-10700K. How we estimate

Where a call's time goes on our RTX 4090: memory-bound 51%, tensor cores, FP16 (FP32 accumulate) 22%, CPU and kernel launches 15%, unclassified kernels 11%, host–device copies 1%.

GeForce (13)
GPUFitsLatency
GeForce RTX 5090Blackwell, 32 GB GDDR7Yes≈ 100 ms*
GeForce RTX 5080Blackwell, 16 GB GDDR7Yes≈ 170 ms*
GeForce RTX 5070 TiBlackwell, 16 GB GDDR7Yes≈ 190–200 ms*
GeForce RTX 5070Blackwell, 12 GB GDDR7Yes≈ 240–260 ms*
GeForce RTX 5060 Ti 16GBBlackwell, 16 GB GDDR7Yes≈ 340–360 ms*
GeForce RTX 5060Blackwell, 8 GB GDDR7Yes≈ 360–400 ms*
GeForce RTX 4080Ada Lovelace, 16 GB GDDR6XYes≈ 200–210 ms*
GeForce RTX 4070 TiAda Lovelace, 12 GB GDDR6XYes≈ 270 ms*
GeForce RTX 4070Ada Lovelace, 12 GB GDDR6XYes≈ 290–310 ms*
GeForce RTX 3090Ampere, 24 GB GDDR6XYes≈ 200–220 ms*
GeForce RTX 3080Ampere, 10 GB GDDR6XYes≈ 230–260 ms*
GeForce RTX 3070 TiAmpere, 8 GB GDDR6XYes≈ 300–330 ms*
GeForce RTX 3070Ampere, 8 GB GDDR6Yes≈ 360–390 ms*
  • * 11% of the call is in kernels the rules don't recognize, which widens the range.
Workstation (4)
GPUFitsLatency
RTX PRO 6000 Blackwell Workstation EditionBlackwell, 96 GB GDDR7Yes≈ 81–87 ms*
RTX PRO 6000 Blackwell Max-Q Workstation EditionBlackwell, 96 GB GDDR7Yes≈ 84–91 ms*
RTX 6000 Ada GenerationAda Lovelace, 48 GB GDDR6Yes≈ 120–130 ms*
RTX A6000Ampere, 48 GB GDDR6Yes≈ 170–190 ms*
  • * 11% of the call is in kernels the rules don't recognize, which widens the range.
Data center (6)
GPUFitsLatency
B200 (HGX, one GPU)Blackwell, 180 GB HBM3EYes≈ 37–55 ms*
H200 SXMHopper, 141 GB HBM3eYes≈ 48–66 ms*
H100 SXMHopper, 80 GB HBM3Yes≈ 54–72 ms*
A100 SXM 80GBAmpere, 80 GB HBM2eYes≈ 87–140 ms*
L40SAda Lovelace, 48 GB GDDR6Yes≈ 130–140 ms*
L4Ada Lovelace, 24 GB GDDR6Yes≈ 340–370 ms*
  • * 11% of the call is in kernels the rules don't recognize, which widens the range.

CPU only

Measured by us with no GPU on an Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz, 8 cores, 94.2 GiB of memory: the same official code with the GPU hidden, in fp32. These numbers say what to expect without a GPU. They aren't compared with any GPU's, here or in the charts. How we measure on a CPU

SizeRuntimeLatency on the CPURAM peak
vitlPyTorch2.14.1Doesn't run on a CPU: the official code needs a CUDA GPU
vitgPyTorch2.14.1Doesn't run on a CPU: the official code needs a CUDA GPU

From the authors

In their words, with their numbers. Ours are in the cards at the top of this page.

Paper

MoGe-3: Fine-Detail Monocular Geometry Estimation with Self-Guided Sparse Volumetric Refinement

Lingyu Kong, Ruicheng Li, Ruicheng Wang, Sicheng Xu, Chengtang Yao, Jianfeng Xiang and 1 others

arXiv 2607.17967, 20 Jul 2026

Abstract

Monocular geometry estimation has recently achieved impressive performance across diverse scenes. However, state-of-the-art models still face notable distortion in local 3D structure, especially in fine details, like thin structures and small objects. We attribute this limitation to an architectural mismatch: most current models decode 3D geometry within a 2D parameterization, where feature interactions are governed by image-plane proximity rather than true 3D spatial relationships. This inadvertently mixes features from geometrically distant surfaces, resulting in over-smoothed geometry particularly around thin or elongated structure. In this paper, we propose MoGe-3, a fine-detail monocular geometry estimation model with Self-Guided Sparse 3D Refinement (SSR) that lifts monocular geometry modeling from 2D image space to 3D space for high-fidelity metric-scale point maps. MoGe-3 lifts the coarse point map from a foundation base model onto a sparse voxel shell and refines it via SSR. The SSR employs sparse convolutions that aggregate features based on 3D spatial locality, avoiding feature mixing across depth discontinuities. Extensive experiments on diverse datasets demonstrate that MoGe-3 significantly outperforms existing approaches in recovering fine detailed 3D geometry across both quantitative metrics and qualitative visualizations. Project page: https://qft-333.github.io/moge3page/

README

Copied from the authors' repository at commit 74fbce0 on 3 Dec 2026. Numbers and license claims in it are theirs, not measured or checked by us. We removed badges, replaced images with links and adjusted headings.

MoGe is a powerful model for recovering 3D geometry from monocular open-domain images, including metric point maps, metric depth maps, normal maps and camera FOV. Check our websites (MoGe-1, MoGe-2, MoGe-3) for videos and interactive results!

📖 Publications

MoGe-3: Fine-Detail Monocular Geometry Estimation with Self-Guided Sparse Volumetric Refinement

Video

MoGe-2: Accurate Monocular Geometry with Metric Scale and Sharp Details
Video https://github.com/user-attachments/assets/8f9ae680-659d-4f7f-82e2-b9ed9d6b988a
MoGe: Unlocking Accurate Monocular Geometry Estimation for Open-Domain Images with Optimal Training Supervision
Overview Figure Method overview

🌟 Features

  • Accurate 3D geometry estimation: Estimate point maps & depth maps & normal maps from open-domain single images with high precision -- all capabilities in one model, one forward pass.
  • Optional ground-truth FOV input: Enhance model accuracy further by providing the true field of view.
  • Flexible resolution support: Works seamlessly with various resolutions and aspect ratios, from 2:1 to 1:2.
  • Optimized for speed: Achieves 60ms latency per image (A100 or RTX3090, FP16, ViT-L). Adjustable inference resolution for even faster speed.

✨ News

(2026-08-18)

  • ❗Released MoGe-3, featuring significantly improved fine-grained point map geometry.

📦 Installation

Requires Python 3.10 or newer. Dependencies are declared in pyproject.toml, which works with both uv and pip.

macOS is not supported: MoGe-3 depends on FlexGEMM, which builds on Triton, and Triton publishes no macOS wheels.

The following optional extras are available:

ExtraContents
trainaccelerate, wandb, tensorboard, mlflow, … — see docs/train.md
git clone https://github.com/microsoft/MoGe.git
cd MoGe
uv sync                             # inference, all model versions
# uv sync --extra train             # ... plus the training dependencies

This creates a .venv/ and installs MoGe into it in editable mode. Prefix commands with uv run (e.g. uv run moge infer ...), or activate the environment with source .venv/bin/activate.

Using pip
pip install git+https://github.com/microsoft/MoGe.git

Or from a clone, which is what you want if you intend to edit the code:

git clone https://github.com/microsoft/MoGe.git
cd MoGe
pip install -e .

Extras work the same way here: pip install -e ".[train]".

Choosing a PyTorch build

With uv there is nothing to choose: pyproject.toml pins torch and torchvision to the CUDA 13.0 wheel index. To target a different CUDA version, either edit the index URL in pyproject.toml, or reinstall PyTorch into the synced environment:

uv pip install --torch-backend=cu128 torch torchvision --reinstall
# --torch-backend=auto picks a build matching your installed driver

pip does not read uv's index configuration, so a plain pip install takes whatever PyPI serves. Pass the index you want explicitly:

pip install -e . --index-url https://download.pytorch.org/whl/cu130

Note: MoGe should be compatible with most dependency versions — the bounds in pyproject.toml are deliberately loose. Please check them for details if you encounter any dependency issues.

🤗 Pretrained Models

Our pretrained models are available on the huggingface hub:

Version Hugging Face Model Metric scale Normal #Params
MoGe-1 Ruicheng/moge-vitl - - 314M
MoGe-2 Ruicheng/moge-2-vitl ✅ - 326M
Ruicheng/moge-2-vitl-normal ✅ ✅ 331M
Ruicheng/moge-2-vitb-normal ✅ ✅ 104M
Ruicheng/moge-2-vits-normal ✅ ✅ 35M
MoGe-3 Ruicheng/moge-3-vitg ✅ ✅ 1.25B
Ruicheng/moge-3-vitl ✅ ✅ 370M

You may import the MoGeModel class of the matched version, then load the pretrained weights via MoGeModel.from_pretrained("HUGGING_FACE_MODEL_REPO_NAME") with automatic downloading. If loading a local checkpoint, replace the model name with the local path.

For ONNX support, please refer to docs/onnx.md.

💡 Minimal Code Example

Here is a minimal example for loading the model and inferring on a single image.

import cv2
import torch
# from moge.model.v1 import MoGeModel
# from moge.model.v2 import MoGeModel
from moge.model.v3 import MoGeModel # Let's try MoGe-3

device = torch.device("cuda")

# Load the model
model = MoGeModel.from_pretrained("PATH_TO_CKPT.pt").to(device)

# Read the input image and convert to tensor (3, H, W) with RGB values normalized to [0, 1]
input_image = cv2.cvtColor(cv2.imread("PATH_TO_IMAGE.jpg"), cv2.COLOR_BGR2RGB)                       
input_image = torch.tensor(input_image / 255, dtype=torch.float32, device=device).permute(2, 0, 1)    

# Infer
# Three refinement steps are applied by default. Set `refine_steps` to change this.
output = model.infer(input_image)
"""
`output` contains the final prediction. Pass `return_per_step=True` to also return every refinement step.
All maps have the same height and width as the input image.
{
  "points": (H, W, 3),                  # final metric point map in OpenCV camera coordinates (x right, y down, z forward)
  "depth": (H, W),                      # final metric depth map
  "intrinsics": (3, 3),                 # normalized camera intrinsics for the final prediction
  "mask": (H, W),                       # binary mask for valid pixels
  "normal": (H, W, 3),                 # normal map in OpenCV camera coordinates (optional)
}
With `return_per_step=True`, `points_per_step`, `depth_per_step`, and `intrinsics_per_step`
contain `refine_steps + 1` entries, including the initial prediction.
"""

For more usage details, see the MoGeModel.infer() docstring.

💡 Usage

Gradio demo

The demo for MoGe-1 is available at our Hugging Face Space. The demo for MoGe-2 is available at our Hugging Face Space.

# Using the command line tool
moge app --version v1
moge app --version v2
moge app --version v3 --pretrained PATH_TO_CKPT.pt

# In this repo
python -m moge.scripts.app  # --share for Gradio public sharing

See also moge/scripts/app.py

Inference | moge infer

Run the script moge/scripts/infer.py via the following command:

# Save the output [maps], [glb] and [ply] files
moge infer -i IMAGES_FOLDER_OR_IMAGE_PATH --version v2 --o OUTPUT_FOLDER --maps --glb --ply

# MoGe-3 requires an explicit checkpoint and supports sparse refinement
moge infer -i IMAGES_FOLDER_OR_IMAGE_PATH --version v3 --pretrained PATH_TO_CKPT.pt --refine_steps 3 --o OUTPUT_FOLDER --maps --glb --ply

# Show the result in a window (requires pyglet < 2.0, e.g. pip install pyglet==1.5.29)
moge infer -i IMAGES_FOLDER_OR_IMAGE_PATH --o OUTPUT_FOLDER --show

For detailed options, run moge infer --help:

Usage: moge infer [OPTIONS]

  Inference script

Options:
  -i, --input PATH            Input image or folder path. "jpg" and "png" are
                              supported.
  --fov_x FLOAT               If camera parameters are known, set the
                              horizontal field of view in degrees. Otherwise,
                              MoGe will estimate it.
  -o, --output PATH           Output folder path
  --pretrained TEXT           Pretrained model name or path. Optional for v1/v2
                              and required for v3.
  --version [v1|v2|v3]        Model version. Defaults to "v3"
  --device TEXT               Device name (e.g. "cuda", "cuda:0", "cpu").
                              Defaults to "cuda"
  --fp16                      Use fp16 precision for much faster inference.
  --resize INTEGER            Resize the image(s) & output maps to a specific
                              size. Defaults to None (no resizing).
  --resolution_level INTEGER  An integer [0-9] for the resolution level for
                              inference. Higher value means more tokens and
                              the finer details will be captured, but
                              inference can be slower. Defaults to 9. Note
                              that it is irrelevant to the output size, which
                              is always the same as the input size.
                              `resolution_level` actually controls
                              `num_tokens`. See `num_tokens` for more details.
  --num_tokens INTEGER        number of tokens used for inference. A integer
                              in the (suggested) range of `[1200, 2500]`.
                              `resolution_level` will be ignored if
                              `num_tokens` is provided. Default: None
  --refine_steps INTEGER RANGE
                              Number of sparse refinement steps for v3.
                              Defaults to 3. [x>=0]
  --threshold FLOAT           Threshold for removing edges. Defaults to 0.01.
                              Smaller value removes more edges. "inf" means no
                              thresholding.
  --maps                      Whether to save the output maps (image, point
                              map, depth map, normal map, mask) and fov.
  --glb                       Whether to save the output as a.glb file. The
                              color will be saved as a texture.
  --ply                       Whether to save the output as a.ply file. The
                              color will be saved as vertex colors.
  --show                      Whether show the output in a window. Note that
                              this requires pyglet<2 installed as required by
                              trimesh.
  --help                      Show this message and exit.

See also moge/scripts/infer.py

360° panorama images | moge infer_panorama

NOTE: This is an experimental extension of MoGe.

The script will split the 360-degree panorama image into multiple perspective views and infer on each view separately. The output maps will be combined to produce a panorama depth map and point map.

Note that the panorama image must have spherical parameterization (e.g., environment maps or equirectangular images). Other formats must be converted to spherical format before using this script. Run moge infer_panorama --help for detailed options.

Figure panorama pipeline

The photo is from this URL

See also moge/scripts/infer_panorama.py

🏋️‍♂️ Training & Finetuning

See docs/train.md

🧪 Evaluation

See docs/eval.md

⚖️ License

MoGe code is released under the MIT license, except for DINOv2 code in moge/model/modules/dinov2 which is released by Meta AI under the Apache 2.0 license. See LICENSE for more details.

📜 Citation

If you find our work useful in your research, we gratefully request that you consider citing our paper:

@inproceedings{wang2025moge,
  title={Moge: Unlocking accurate monocular geometry estimation for open-domain images with optimal training supervision},
  author={Wang, Ruicheng and Xu, Sicheng and Dai, Cassie and Xiang, Jianfeng and Deng, Yu and Tong, Xin and Yang, Jiaolong},
  booktitle={Proceedings of the Computer Vision and Pattern Recognition Conference},
  pages={5261--5271},
  year={2025}
}

@misc{wang2025moge2,
      title={MoGe-2: Accurate Monocular Geometry with Metric Scale and Sharp Details}, 
      author={Ruicheng Wang and Sicheng Xu and Yue Dong and Yu Deng and Jianfeng Xiang and Zelong Lv and Guangzhong Sun and Xin Tong and Jiaolong Yang},
      year={2025},
      eprint={2507.02546},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2507.02546}, 
}

@misc{kong2026finedetailmonoculargeometryestimation,
      title={Fine-Detail Monocular Geometry Estimation with Self-Guided Sparse Volumetric Refinement},
      author={Lingyu Kong and Ruicheng Li and Ruicheng Wang and Sicheng Xu and Chengtang Yao and Jianfeng Xiang and Jiaolong Yang},
      year={2026},
      eprint={2607.17967},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2607.17967},
}

Alternatives

Changes

First published . Every model's changes

    • Added, with sizes vitl and vitg

Badge for a README

It says the model ran on our RTX 4090 and links to this page. It carries no number, so it never goes out of date.

ModelsThatRun: ran on RTX 4090
[![ModelsThatRun: ran on RTX 4090](https://modelsthatrun.dev/models/moge-3/badge.svg)](https://modelsthatrun.dev/models/moge-3/)

Something wrong on this page, such as a license or a number? Email us.

⇆
InputOutput