Giter VIP home page Giter VIP logo

las-diffusion's Introduction

Locally Attentional SDF Diffusion for Controllable 3D Shape Generation (SIGGRAPH 2023)

This repository contains the core implementation of our paper:

Locally Attentional SDF Diffusion for Controllable 3D Shape Generation
Xin-Yang Zheng, Hao Pan, Peng-Shuai Wang, Xin Tong, Yang Liu and Heung-Yeung Shum

teaser

Installation

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

conda create -n sketch_diffusion
conda activate sketch_diffusion

conda install pytorch=1.9.0 torchvision=0.10.0 cudatoolkit=10.2 -c pytorch -c nvidia

pip install tqdm fire einops pyrender pyrr trimesh ocnn timm scikit-image==0.18.2 scikit-learn==0.24.2 pytorch-lightning==1.6.1

Data Preparation

SDF data creation

Please ref to SDF-StyleGAN for generating the SDF field from ShapeNet data or your customized data.

Sketch data creation

Please refer to prepare_sketch.py for details.

Pre-trained Models

We provide the pretrained models for the category-conditioned generation and sketch-conditioned generation. Please download the pretrained models from Google Drive and put them in checkpoints/.

Usage

Please refer to the scripts in scripts/ for the usage of our code.

Train from Scratch

bash scripts/train_sketch.sh
bash scripts/train_category.sh

Category-conditioned generation

bash scripts/generate_category.sh

Sketch-conditioned generation

bash scripts/generate_sketch.sh

Citation

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

@article {zheng2023lasdiffusion,
  title      = {Locally Attentional SDF Diffusion for Controllable 3D Shape Generation},
  author     = {Zheng, Xin-Yang and Pan, Hao and Wang, Peng-Shuai and Tong, Xin and Liu, Yang and Shum, Heung-Yeung},
  journal    = {ACM Transactions on Graphics (SIGGRAPH)},
  volume     = {42},
  number     = {4},
  year       = {2023},
}

las-diffusion's People

Contributors

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