Giter VIP home page Giter VIP logo

mvs's Introduction

Photo2Model-MVS

Photo2Model is a complete 3D reconstruction pipeline based on COLMAP and PointMVSNet that only requires a set of photos as inputs.

display

Prerequisite

  • COLMAP, tested under versions >= 3.6

Download

git clone https://github.com/PKU-VCL-3DV/MVS.git && cd MVS

Install Dependencies

bash ./install_dependencies.sh

Compile CUDA extensions

bash ./compile.sh

Photo2Model

Photos

Photos should be placed under ./data/images. Make sure that photos are named in an ordered {:08d}.png(or {:08d}.jpg) format, starting from 00000000.png(or 00000000.jpg).

To help rename your photos, EITHER run

python ./renamePhotos.py

OR, to delete the unrenamed photos,

python ./renamePhotos.py -d

COLMAP

This step requires a GPU, so make sure to check the script before you run on the specified GPU. To calibrate the cameras using COLMAP, run

bash ./runCOLMAP.sh

Convert Parameters into Matrices

python ./colmap2matrices.py

PointMVSNet

Remember to adjust the image resolution and the number of virtual planes in ./configs/photo2model.yaml.

Under the conda environment Photo2Model, run

python pointmvsnet/test.py --cfg configs/photo2model.yaml TEST.WEIGHT ./model.pth

Fuse

To convert the depth maps into a complete 3D model, run

python fuse_depthmaps.py

mvs's People

Contributors

xyz-99 avatar

Watchers

 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.