Skip to content

Official implementation of the paper: "D2NT: A High-Performing Depth-to-Normal Translator"

License

Notifications You must be signed in to change notification settings

fengyi233/depth-to-normal-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D2NT: A High-Performing Depth-to-Normal Translator

This repo is the official implementation of the paper:

"D2NT: A High-Performing Depth-to-Normal Translator"

[arXiv] [homepage] [video]

trade-off

trade-off

Prerequisites

  • matplotlib==3.5.1
  • numpy==1.24.2
  • opencv-python==4.5.1.48

Dataset Preparation

Public real-world datasets generally obtain surface normals by local plane fitting, which makes the surface normal ground truth unreliable. Therefore, we use the synthesis 3F2N dataset provided in this paper to evaluate estimation performance.

The 3F2N dataset can be downloaded from:
BaiduDisk
GoogleDrive
The dataset is organized as follows:

3F2N
 |-- Easy
 |  |-- android
 |  |  |-- depth
 |  |  |-- normal
 |  |  |-- params.txt
 |  |  |-- pose.txt
 |  |-- cube
 |  |-- ...
 |  |-- torusknot
 |-- Medium
 |  |-- ...
 |-- Hard
 |  |-- ...

Python Demo

Navigate to python directory and run demo.py, a result and the corresponding error map (degrees) will be displayed. We also implement 3F2N SNE in python. The matlab and c++ implementation can be found in this repository.

It is recommended to run 'demo.py' in your Python Console instead of the Terminal for the sake of visualization. You can change the parameter 'VERSION' to select the D2NT version.
'd2nt_basic' represents for the depth-to-normal translator without any optimization method.
'd2nt_v2' represents for the D2NT with Discontinuity-Aware Gradient (DAG) filter.
'd2nt_v3' represents for the D2NT with DAG filter and MRF-based Normal Refinement (MNR) module.

Cite

This code is for non-commercial use. If you find our work useful in your research, please consider citing our paper:

@inproceedings{icra_2023_d2nt,
	author      = {{Yi Feng, Bohuan Xue, Ming Liu, Qijun Chen, and Rui Fan}},
	title       = {{D2NT: A High-Performing Depth-to-Normal Translator}},
	booktitle   = {{IEEE International Conference on Robotics and Automation (ICRA)}},
	year        = {{2023}}
}

About

Official implementation of the paper: "D2NT: A High-Performing Depth-to-Normal Translator"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages