Coder Social home page Coder Social logo

peterzs / designing-perceptual-puzzles-by-differentiating-probabilistic-programs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kach/designing-perceptual-puzzles-by-differentiating-probabilistic-programs

0.0 0.0 0.0 3.47 MB

Supplementary materials for our SIGGRAPH 2022 paper

Home Page: https://arxiv.org/abs/2204.12301

Python 1.50% Jupyter Notebook 98.50%

designing-perceptual-puzzles-by-differentiating-probabilistic-programs's Introduction

Designing Perceptual Puzzles by Differentiating Probabilistic Programs

This repository contains source code to accompany the SIGGRAPH paper Designing Perceptual Puzzles by Differentiating Probabilistic Programs (Chandra, Li, Tenenbaum, and Ragan-Kelley 2022).

We design new visual illusions by finding "adversarial examples" for principled models of human perception โ€” specifically, for probabilistic models, which treat vision as Bayesian inference. To perform this search efficiently, we design a differentiable probabilistic programming language, whose API exposes MCMC inference as a first-class differentiable function. We demonstrate our method by automatically creating illusions for three features of human vision: color constancy, size constancy, and face perception.

@InProceedings{chandra2022designing,
  title = {Designing Perceptual Puzzles by Differentiating Probabilistic Programs},
  author = {Kartik Chandra and Tzu-Mao Li and Joshua Tenenbaum and Jonathan Ragan-Kelley},
  booktitle = {Special Interest Group on Computer Graphics and Interactive Techniques Conference Proceedings (SIGGRAPH '22 Conference Proceedings)},
  month = {aug},
  year = {2022},
  doi = {10.1145/3528233.3530715}
}

Contents

  • Differentiable Probabilistic Programming (Sec 2)
    • razor.py: our differentiable PPL's implementation (Sec 2.2)
    • reversible.py: implementation of reversible learning in JAX (Sec 2.3)
    • Thermometer.ipynb: concrete implementation of our worked example (Sec 3)
  • Applications (Sec 3)
    • Color constancy.ipynb (Sec 4.1)
      • cc/: pre-rendered masks to be composited by renderer
    • Size constancy.ipynb (Sec 4.2)
    • Face perception.ipynb (Sec 4.3)
      • softras.py: implementation of SoftRas differentiable renderer in JAX
      • basel_cmplx.npz: low-poly simplified mesh of the Basel Face Model

Requirements:

  • Python 3 (3.9.5), ImageMagick
  • jax (0.2.20), jaxlib (0.1.71+cuda11)
  • Jupyter Lab, numpy, matplotlib, imageio, tqdm

designing-perceptual-puzzles-by-differentiating-probabilistic-programs's People

Contributors

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