GithubHelp home page GithubHelp logo

jackzhousz / deepjoin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from terascale-all-sensing-research-studio/deepjoin

0.0 0.0 0.0 78.98 MB

[SIGGRAPH Asia 2022] Code for "DeepJoin: Learning a Joint Occupancy, Signed Distance, and Normal Field Function for Shape Repair"

License: Apache License 2.0

Shell 1.57% Python 98.43%

deepjoin's Introduction

DeepJoin

Code for "DeepJoin: Learning a Joint Occupancy, Signed Distance, and Normal Field Function for Shape Repair."
Published at SIGGRAPH Asia 2022.

example1 example1
Input Output
citation placeholder

Installation

Code tested using Ubutnu 18.04 and python 3.8.0. Note that you need to have the following apt dependencies installed.

sudo apt install python3.8-distutils python3.8-dev libgl1 libglew-dev freeglut3-dev

Clone the repo.

https://github.com/Terascale-All-sensing-Research-Studio/DeepJoin.git
cd DeepJoin

We recommend using virtualenv. The following snippet will create a new virtual environment, activate it, and install deps.

sudo apt-get install virtualenv && \
virtualenv -p python3.8 env && \
source env/bin/activate && \
pip install -r requirements.txt && \
./install.sh && \
source setup.sh

Issues with compiling pyrender are typically solved by upgrading cython: pip install --upgrade cython.

If you want to run the fracturing and sampling code, you'll need to install pymesh dependencies:

./install_pymesh.sh

Quickstart Inference

If you just want to try out inference, run the following script with the example file. This will infer a restoration and create a gif.

cd deepjoin
./scripts/infer_quick.sh experiments/mugs/specs.json ../example_files/fractured_mug.obj

You should get a gif that looks like this one!
example1

Data Preparation

See fracturing/README.md.

Training

Navigate into the deepjoin directory.

cd deepjoin

Each experiment needs a corresponding directory with a "specs.json" file. You can find an example at deepjoin/experiments/mugs.

To train, run the training python script with the path to an experiment directory.

python python/train.py -e experiments/mugs

Inference

Navigate into the deepjoin directory.

cd deepjoin

Inference (and related operations) is done in four steps:

  1. Infer latent codes.
  2. Reconstruct meshes.
  3. Generate renders.
  4. Evaluate meshes.

Each experiment needs a corresponding directory with a "specs.json" file. You can find an example at deepjoin/experiments/mugs.

To infer:

./scripts/infer.sh experiments/mugs

Data is saved in the experiment directory passed to the reconstruction script, under a Reconstructions subdirectory. For example, results for the mugs example will be stored in deepjoin/experiments/mugs/Reconstructions/ours/. Meshes are stored in the Meshes subdirectory. A render of all the results is stored in the top-level reconstruction directory.

deepjoin's People

Contributors

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