GithubHelp home page GithubHelp logo

pc2wf's Introduction

PC2WF

by Yujia Liu, Stefano D'Aronco, Konrad Schindler, Jan Dirk Wegner.

Introduction

This repository is for our ICLR2021 paper 'PC2WF: 3D WIREFRAME RECONSTRUCTION FROM RAW POINT CLOUDS'.

Installation

This code relies on FCGF as backbone network. Please make sure that you installed all requirements.

This code has been tested with CUDA 10.0, Python 3.7, Pytorch 1.2.0, MinkowskiEngine 0.2.9.

Data Preparation

  1. Clone this repository.

    git clone https://github.com/YujiaLiu76/PC2WF
    cd PC2WF
    
  2. Put pointcloud dataset into directory abc_data/clean/xyz/. Put corresponding groudtruch files into directory abc_data/clean/gt/. (Please refer to the examples in those directories we put into)

  3. Add noise to clean pointclouds. The default sigma and clip values are both 0.01.

    cd gen_data
    python noise_addnoise.py
    
  4. Generate path dataset for training and evaluation.

    cd ..
    python noise_gen_patch_straight.py
    
  5. Train a model.

    python main.py -d abc_data -p 50 -nt 0.01 -lpt 0.01 -lnt 0.01 -s 0.01 -c 0.01
    

    Please refer to main.py for detailed explanation of arguments. (We have provided a pretained model with default arguments on abc dataset.)

  6. Visualize results. We provided scripts for visualizing predicted wireframe results from pointclouds. The following scripts will read metadata generated in abc_data/pathches_*/test/ and visualize the predicted wireframes. Note that, they will use pretained models as default.

    • predict vertexes and edges
    cd visualize
    python run_test_line.py
    
    • visualize
    python visualize_line.py
    

pc2wf's People

Contributors

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