Add model card for FE2E

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +73 -3
README.md CHANGED
@@ -1,3 +1,73 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: depth-estimation
4
+ ---
5
+
6
+ # FE2E: From Editor to Dense Geometry Estimator
7
+
8
+ FE2E is a Diffusion Transformer (DiT)-based foundation model for monocular dense geometry prediction. It adapts an advanced image editing model to dense geometry tasks, achieving strong zero-shot performance on both monocular depth and normal estimation.
9
+
10
+ [[Project Page](https://amap-ml.github.io/FE2E/)] [[Paper](https://huggingface.co/papers/2509.04338)] [[GitHub](https://github.com/AMAP-ML/FE2E)]
11
+
12
+ ![teaser](https://github.com/AMAP-ML/FE2E/raw/main/assets/demo.png)
13
+
14
+ ## Introduction
15
+ FE2E (From Editor to Dense Geometry Estimator) adapts an advanced image editing model based on Diffusion Transformer (DiT) architecture for dense geometry prediction. Key features include:
16
+ - **Consistent Velocity Objective**: Reformulates the editor's original flow matching loss for deterministic tasks.
17
+ - **Logarithmic Quantization**: Resolves precision conflicts between the editor's native BFloat16 format and the high precision demands of geometry tasks.
18
+ - **Joint Estimation**: Leverages DiT's global attention for joint estimation of depth and normals in a single forward pass.
19
+
20
+ FE2E achieves impressive performance improvements in zero-shot monocular depth and normal estimation, notably achieving over 35% gains on the ETH3D dataset and outperforming models trained on significantly more data.
21
+
22
+ ## 🕹️ Inference
23
+
24
+ ### 1. Setup
25
+ ```bash
26
+ pip install -r requirements.txt
27
+ ```
28
+
29
+ ### 2. Prepare Model Weights
30
+ 1. Download the base weights from the official [Step1X-Edit](https://github.com/stepfun-ai/Step1X-Edit) release.
31
+ 2. Download the FE2E LoRA [checkpoint](https://huggingface.co/exander/FE2E/blob/main/LDRN.safetensors) from this repository.
32
+
33
+ ### 3. Run Evaluation
34
+
35
+ To run evaluation for **depth estimation**:
36
+ ```bash
37
+ python -u evaluation.py \
38
+ --model_path ./pretrain \
39
+ --eval_data_root ./infer \
40
+ --output_dir ./infer/eval_results \
41
+ --num_gpus 8 \
42
+ --lora ./lora/LDRN.safetensors \
43
+ --single_denoise \
44
+ --prompt_type empty \
45
+ --norm_type ln \
46
+ --task_name depth \
47
+ --depth_eval_datasets [dataset]
48
+ ```
49
+
50
+ To run evaluation for **normal estimation**:
51
+ ```bash
52
+ python -u evaluation.py \
53
+ --model_path ./pretrain \
54
+ --eval_data_root ./infer \
55
+ --output_dir ./infer/eval_results \
56
+ --num_gpus 8 \
57
+ --lora ./lora/LDRN.safetensors \
58
+ --single_denoise \
59
+ --prompt_type empty \
60
+ --norm_type ln \
61
+ --task_name normal \
62
+ --normal_eval_datasets [dataset]
63
+ ```
64
+
65
+ ## Citation
66
+ ```bibtex
67
+ @article{wang2025editor,
68
+ title={From Editor to Dense Geometry Estimator},
69
+ author={Wang, JiYuan and Lin, Chunyu and Sun, Lei and Liu, Rongying and Nie, Lang and Li, Mingxing and Liao, Kang and Chu, Xiangxiang and Zhao, Yao},
70
+ journal={arXiv preprint arXiv:2509.04338},
71
+ year={2025}
72
+ }
73
+ ```