---
title: cv_unifuse_panorama-depth-estimation
canonical_url: "https://www.modelscope.cn/models/iic/cv_unifuse_panorama-depth-estimation"
md_url: "https://www.modelscope.cn/models/iic/cv_unifuse_panorama-depth-estimation.md"
repository: iic/cv_unifuse_panorama-depth-estimation
chinese_name: "基于单向融合的全景图深度估计"
last_updated: 2023-02-16
license: "Apache License 2.0"
pipeline_tag: panorama-depth-estimation
tasks:
  - panorama-depth-estimation
model_type:
  - roberta
library_name:
  - pytorch
frameworks:
  - pytorch
domain:
  - cv
downloads: 1098
stars: 10
tags:
  - Alibaba
  - Panorama
  - Depth
  - "3D Vision"
  - XR
---

# cv_unifuse_panorama-depth-estimation

> cv_unifuse_panorama-depth-estimation - iic 在 ModelScope 开源的模型。单目全景图的深度估计

iic/cv_unifuse_panorama-depth-estimation 是 ModelScope 魔搭社区上的panorama-depth-estimation模型，采用 Apache License 2.0 许可。

- **Repository**: iic/cv_unifuse_panorama-depth-estimation
- **License**: Apache License 2.0
- **Tasks**: panorama-depth-estimation
- **Tags**: Alibaba, Panorama, Depth, 3D Vision, XR
- **Downloads**: 1098
- **Stars**: 10
- **Last updated**: 2023-02-16

Source: https://www.modelscope.cn/models/iic/cv_unifuse_panorama-depth-estimation

---

# 全景图深度估计算法介绍

## 任务
输入一张单目全景RGB图像，全景深度估计算法将分析场景三维结构、输出图像对应的稠密深度图.

## 模型描述

本模型基于**UniFuse: Unidirectional Fusion for 360° Panorama Depth Estimation**，是该算法的官方模型。

技术细节请见：

[arXiv](https://arxiv.org/abs/2102.03550), [Demo](https://youtu.be/9vm9OMksvrc)


## 如何使用

### 代码示例

```python
import cv2
from modelscope.outputs import OutputKeys
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
from modelscope.utils.cv.image_utils import depth_to_color


task = 'panorama-depth-estimation'
model_id = 'damo/cv_unifuse_panorama-depth-estimation'

input_location = 'data/test/images/panorama_depth_estimation.jpg'
estimator = pipeline(Tasks.panorama_depth_estimation, model=model_id)
result = estimator(input_location)
depth_vis = result[OutputKeys.DEPTHS_COLOR]
cv2.imwrite('result.jpg', depth_vis)
```

### 适用范围

输入一张单目全景RGB图像，图像投影模型为Equirectangular，即长宽比为2:1，建议分辨率为1024x512.


## 模型精度
在Matterport3D上的结果为
| Model | MAE | Abs Rel | RMSE | RMSElog | δ<1.25 | δ<1.25<sup>2</sup> | δ<1.25<sup>3</sup> | 
| :--- | :---: | :---: | :---: |  :---: |  :---: |  :---: |  :---: | 
|Unifuse | 0.2814 | 0.1063 | 0.4941 | 0.0701 | 88.97 | 96.23 | 98.3 |

## Bibtex

```
@article{jiang2021unifuse,
      title={UniFuse: Unidirectional Fusion for 360$^{\circ}$ Panorama Depth Estimation}, 
      author={Hualie Jiang and Zhe Sheng and Siyu Zhu and Zilong Dong and Rui Huang},
	  journal={IEEE Robotics and Automation Letters},
	  year={2021},
	  publisher={IEEE}
}
```
