Skip to content

D2IM-Net: learning detail disentangled implicit fields from single images

Notifications You must be signed in to change notification settings

ManyiLi12345/D2IM-Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D2IM-Net: learning detail disentangled implicit fields from single images

Data preparation

Our training data includes the images, normal maps and the 3D supervision, all downloaded from datasets provided by DISN. Please download the dataset into folder ./data/.

The datasets need to be pre-processed for our training.

python ./preprocessing/process_normals.py
python ./preprocessing/estimate_density.py # pre-compute the point sampling density for our weighted sampling strategy during training.
python ./preprocessing/estimate_gradient.py # pre-compute the SDF gradients to classify the front-side and back-side nearby points.

Training and testing

For training and testing, please directly run

python train.py

and

python test.py

To change the default settings, please see utils.py.

During training, it saves the reconstructions of some selected images with GT camera after every a few epochs, in "./ckpt/outputs/".

The test script is to reconstruct from the input image with inferred camera. Before testing, please make sure the trained models, including camera model and D2IM model, are in the './ckpt/models/'. We provide our pre-trained model here (Please note that we follow the DISN train/test split in our training, which may be modified for comparison with other methods.).

Citation

If you find this work useful for your research, please cite our paper using the bibtex below:

@InProceedings{d2im_2021_cvpr,
    author    = {Li, Manyi and Zhang, Hao},
    title     = {d$^2$im-net: learning detail disentangled implicit fields from single images},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2021},
    pages     = {10246-10255}
}

About

D2IM-Net: learning detail disentangled implicit fields from single images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages