GithubHelp home page GithubHelp logo

jackzhousz / drot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jkxing/drot

0.0 0.0 0.0 28 KB

Code for SIGGRAPH ASIA 2022 paper Differentiable Rendering using RGBXY Derivatives and Optimal Transport

License: MIT License

Python 100.00%

drot's Introduction

DROT

Code for SIGGRAPH ASIA 2022 paper Differentiable Rendering using RGBXY Derivatives and Optimal Transport

Installation

Clone this repo first

We suggest create a new Anaconda environment.

conda create -n DROT python=3.8
#Install PyTorch
conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch

Install geomloss

pip install pykeops
pip install geomloss

Install customized PyTorch3D

conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install -c bottler nvidiacub
git clone https://github.com/jkxing/pytorch3d
pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable"

Install Nvdiffrast

git clone https://github.com/NVlabs/nvdiffrast
cd nvdiffrast
pip install .

Install other tools

conda install -c pytorch ignite 
pip install tensorboard,matplotlib,xmltodict,pyglm,imageio,lpips,opencv-python

if some error occurs, the following tips may help:

  • GCC version should under 10
  • Install correct version of nvidia-gl driver(server version may fail)
  • CUDA version/Python-dev version should exactly match everywhere

Demo

Please download sample data here and extract it to data/.

Evaluation

We provide all 8 scenes used in evaluation part. Please refer to experiments/evaluation/*.json for detail settings.

Usage

python experiments/evaluation/optim.py [translation/rotation/...]

Furniture Layout

We provide 12 scenes shown in paper and supplemental materials collected from 3D-FRONT for furniture layout application. Please refer to experiments/furniture/*.json for detail settings.

Usage

python experiments/furniture/optim.py [1-12]

Human Pose Fitting

Please download SMPL model and sample texture from here and extract it to data/human/, files should include

data/human/
├── basicModel_m_lbs_10_207_0_v1.0.0.pkl
├── tex.png
├── UV_Processed.mat
└── UV_symmetry_transforms.mat

Usage

python experiments/smpl/optim.py

You can specify random seed for different initialization.

Facial Expression Reconstruction

Because the face model are not free for public, we do not provide the model and optimization code. But the code are similar to other applications, so you can implement it for your own model.

drot's People

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.