Code Monkey home page Code Monkey logo

sdf-stylegan's Introduction

SDF-StyleGAN: Implicit SDF-Based StyleGAN for 3D Shape Generation (SGP 2022)

This repository contains the core implementation of our paper:

SDF-StyleGAN: Implicit SDF-Based StyleGAN for 3D Shape Generation
Xin-Yang Zheng, Yang Liu, Peng-Shuai Wang, Xin Tong.

teaser

Installation

Following is the suggested way to install the dependencies of our code:

conda create --name stylegan python=3.8
conda activate stylegan
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge
pip install fire scikit-image==0.18.2 scikit-learn==0.24.2 trimesh kornia==0.5.8 pyglet pyrender pyrr
pip install pytorch-lightning==1.5.1

Data Preparation

Data creation

Our SDF field training data was generated by following the pipepline described in the paper DualOctreeGNN. Please ref to its script for generating the SDF field from ShapeNet data or your customized data.

Preprocessed Data

Our training data is also available (total 165G+). Here is the link.

Usage

Train from Scratch

Please modify the data path in the scripts, then run

bash scripts/train_{DATA_CLASS}.sh

Shape Generation

We provide the pretrained models in here. You can download them and modify the model path in the scripts, then run

bash scripts/generate_{DATA_CLASS}.sh

Shading image based FID computation

You can try the demo that generates images for FID calculation. Please refer to our paper for more technical details.

python generate_for_fid.py --model_path {YOU_MODEL_PATH}

Acknowledgements

We use the following third-party codes.

Citation

If you find our work useful in your research, please consider citing:

@inproceedings{zheng2022sdfstylegan,
  title = {SDF-StyleGAN: Implicit SDF-Based StyleGAN for 3D Shape Generation},
  author = {Zheng, Xin-Yang and Liu, Yang and Wang, Peng-Shuai and Tong, Xin},
  booktitle = {Comput. Graph. Forum (SGP)},
  year = {2022},
}

sdf-stylegan's People

Contributors

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