Coder Social home page Coder Social logo

unsup3d_extended's Introduction

This repository contains a Pytorch3D port of the code of the paper "Unsupervised Learning of Probably Symmetric Deformable 3D Objects from Images in the Wild" by Wu et al. You can find the original code here.

Differences compared to original version

  • Pytorch3D instead of Neural Renderer is used as a differential renderer.
  • The size of the albedo map (new: 128x128) and depth map (new: 32x32) have changed. Gradient update is unstable with original size of 64x64 for both maps.

Setup (with Anaconda)

conda env create -f environment.yml

Tested with Python 3.8.3.

Bug in Pytorch3d

You need to change the following lines in phong_shading() function in the file shading.py in the pytorch3d package. #colors = (ambient + diffuse) * texels + specular #colors = (ambient.unsqueeze(1).unsqueeze(1).unsqueeze(1) + diffuse) * texels + specula

Datasets

  1. CelebA face dataset. Please download the original images (img_celeba.7z) from their website and run celeba_crop.py in data/ to crop the images.
  2. Cat face dataset composed of Cat Head Dataset and Oxford-IIIT Pet Dataset (license). This can be downloaded using the script download_cat.sh provided in data/.
  3. Dogs dataset (see https://github.com/JanRuettinger/dog_heads_dataset)

More coming soon

unsup3d_extended's People

Contributors

janruettinger avatar

Watchers

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