Coder Social home page Coder Social logo

mvpsnet's Introduction

MVPSNet: Fast Generalizable Multi-view Photometric Stereo

Getting the data

sMVPS

The dataset is ~ 200 GB on OneDrive. Please fill out this form to request access. You'll have to be manually added to the viewer list.

Thanks to Daniel Lichy for generating the data.

DiLiGenT-MV

You can download the DiLiGenT-MV dataset from their website.

Usage

Setup

We highly recommend using conda to setup a virual environment. Then run pip install -r requirements.txt to add dependencies.

You can download the pre-trained model here.

Generate meshes

Run the following command to generate 3D point clouds.

export DILIGENT_MV=...  # update the path of DiLiGenT_MV dataset
export CKPT_FILE=...  # update the path of checkpoint
export MESH_FOLDER=...  # path to save the meshes
python run.py --dataset=diligent_mv --testpath=$DILIGENT_MV --loadckpt=$CKPT_FILE --save_folder=$MESH_FOLDER --numlights=10 --numviews=5 $@ 

Then use MeshLab to reconstruct meshes from point clouds using Screened Poisson method.

Evaluation

Our evaluation metrics were implemented based on pytorch3d. You can install it following their instructions.

You also need to install trimesh by running

pip install trimesh

Then run the following commands:

export MESH_PATH={your mesh path}
export GT_PATH={ground truth meshes path}
python evaluate.py --reconstruction_path=$MESH_PATH --ground_truth=$GT_PATH

Citation

@inproceedings{zhao2023mvpsnet,
  title={MVPSNet: Fast Generalizable Multi-view Photometric Stereo},
  author={Zhao, Dongxu and Lichy, Daniel and Perrin, Pierre-Nicolas and Frahm, Jan-Michael and Sengupta, Soumyadip},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages={12525--12536},
  year={2023}
}

Acknowledgements

Parts of the code were based on CasMVSNet: https://github.com/hz-ants/cascade-mvsnet/tree/master/CasMVSNet, SDPS-Net https://github.com/guanyingc/SDPS-Net and ShapeAndMaterial https://github.com/dlichy/ShapeAndMaterial.

mvpsnet's People

Contributors

floralzhao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.