Git Product home page Git Product logo

ss_layer's Introduction

Surface Snapping Optimization Layer for Single Image Object Shape Reconstruction

ICML 2023 (PDF)

Yuan-Ting Hu, Alexander G. Schwing, Raymond A. Yeh1
University of Illinois at Urbana-Champaign
Purdue University1

Overview

This repository contains code for Surface Snapping Optimization Layer for Single Image Object Shape Reconstruction accepted at ICML 2023.

If you used this code or found it helpful, please consider citing the following paper:

@inproceedings{hu-icml2023-surface,
  title = {Surface Snapping Optimization Layer for Single Image Object Shape Reconstruction},
  author = {Yuan-Ting Hu and Schwing, Alexander G and Yeh, Raymond A},
  booktitle = {International Conference on Machine Learning (ICML)},
  year = {2023},
}

Setup Dependencies

To install the dependencies, run the following

conda create -n pytorch3d python=3.8
conda activate pytorch3d
conda install -c pytorch pytorch=1.7.1 torchvision cudatoolkit=10.2
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install -c conda-forge matplotlib
conda install pytorch3d -c pytorch3d
conda install conda-build
cd surface_snapping_code
conda develop .

Run Tests

python -m unittest discover tests/

Demo

To run the demo code, simply run

python tests/demo.py

The demo code runs the proposed surface snapping algorithm to refine the input mesh (data/before_snapping.obj) using the predicted surface normals (data/normal_map.npy). The resulting snapped mesh is stored in output_[alpha].obj.

We also provide a juypter-notebook version of this demo (demo/surface_snapping_demo.ipynb). To run the notebook, please follow the instructions below:

conda install -c conda-forge notebook
conda install -c conda-forge nb_conda_kernels
jupyter-notebook demo/surface_snapping_demo.ipynb

ss_layer's People

Contributors

raymondyeh07 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zuoym15

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.