Coder Social home page Coder Social logo

peterzs / handheld_svbrdf_geometry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autonomousvision/handheld_svbrdf_geometry

0.0 0.0 0.0 28.3 MB

On Joint Estimation of Pose, Geometry and svBRDF from a Handheld Scanner, CVPR2020

License: Other

Python 81.10% C++ 2.43% Cuda 15.07% Shell 1.40%

handheld_svbrdf_geometry's Introduction

On Joint Estimation of Pose, Geometry and svBRDF from a Handheld Scanner

Project Page | Paper | Spotlight Video | Presentation | Poster

teaser

This is the source code repository for our CVPR publication On Joint Estimation of Pose, Geometry and svBRDF from a Handheld Scanner.

By Carolin Schmitt, Simon Donné, Gernot Riegler, Vladlen Koltun and Andreas Geiger.

If you find our code or paper useful, please consider citing

@inproceedings{Schmitt2020CVPR,
  title = {On Joint Estimation of Pose, Geometry and svBRDF from a Handheld Scanner},
  author = {Schmitt, Carolin and Donne, Simon and Riegler, Gernot and Koltun, Vladlen and Geiger, Andreas},
  booktitle = { Proceedings IEEE Conf. on Computer Vision and Pattern Recognition (CVPR)},
  year = {2020}
}

Installation

We provide the installEnv.sh script for provisioning the dependencies of this repository. A working version of both conda (https://conda.io/) and CUDA is required.

By default, the script uses Pytorch 1.4 compiled with CUDA 10.0, but this can easily be changed in 'installEnv.sh'. In line 69 change the 'cudatoolkit=10.0' to the CUDA version of your system. This can be checked with:

which nvcc

Sensor data

You will be able to download sensor data both for either invidivual objects and for the entire dataset from the paper. At the moment, only one object is available, but we work on uploading the rest soon. Download the pre-processed captures via

mkdir data
cd data/
wget https://s3.eu-central-1.amazonaws.com/avg-projects/handheld_svbrdf_geometry/data_single.zip
unzip data_single.zip

Run the method

After downloading and extracting the data locally, you need to adapt the 'path_localization' dictionary in 'code/general_settings.py'.

  • input_data_base_folder: The path of the 'captures' folder.
  • output_base_folder: Where to save the output files.
  • calibration_base_folder: The path of the 'calibration' folder.
  • gt_scan_folder: The path of the 'gt_scans' folder.

At the end of 'main.py' you can specify for which object and which center_view you want to run the optimization and evaluation.

Make sure that the conda environment is activated and you are in the correct folder:

conda activate handheld_svbrdf_geometry
cd code/

Then run

python main.py

When evaluating on a headless server, specify egl as the platform for pyrender:

PYOPENGL_PLATFORM=egl python main.py

Evaluation

The code in this repository produces slightly different results than the ones reported in the paper, as it was refactored for release. Since this occurs consistently over all baselines, we expect the evaluation code is responsible for these changes. We are working on resolving it, but we note that the results still support all our findings in the publication.

handheld_svbrdf_geometry's People

Contributors

carolinschmitt 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.