• Stars
    star
    141
  • Rank 259,971 (Top 6 %)
  • Language
    Julia
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Differentiable RayTracing in Julia

RayTracer.jl

CI codecov Latest Docs DOI DOI

This package was written in the early days of Flux / Zygote. Both these packages have significantly improved over time. Unfortunately the current state of this package of has not been updated to reflect those improvements. It also seems that it might be better to gradually transition to defining the adjoints directly using ChainRules

A Ray Tracer written completely in Julia. This allows us to leverage the AD capablities provided by Zygote to differentiate through the Ray Tracer.

INSTALLATION

This package is registered. So open up a Julia 1.3+ repl and enter the pkg mode.

julia> ]
(v1.3) pkg> add RayTracer

To use the master branch (not recommended) do.

julia> ]
(v1.3) pkg> add RayTracer#master

TUTORIALS

USAGE EXAMPLES

Follow the instructions below to run individual examples or use examples/script.sh to run all of them together.

First we need to get the versions of the packages used when these examples were written.

$ cd examples
$ julia --color=yes -e "using Pkg; Pkg.instantiate()"

Now we can run any of the file we need by julia --project=. --color=yes "/path/to/file"

Running Individual Examples

wget https://raw.githubusercontent.com/McNopper/OpenGL/master/Binaries/teapot.obj
$ mkdir meshes
$ cd meshes
$ wget https://raw.githubusercontent.com/avik-pal/RayTracer.jl/master/test/meshes/sign_yield.obj
$ wget https://raw.githubusercontent.com/avik-pal/RayTracer.jl/master/test/meshes/sign_yield.mtl
$ cd ..

$ mkdir textures
$ cd textures
$ wget https://raw.githubusercontent.com/avik-pal/RayTracer.jl/master/test/textures/wood_osb.jpg
$ wget https://raw.githubusercontent.com/avik-pal/RayTracer.jl/master/test/textures/sign_yield.png
$ cd ..

This example requires a few arguments to be passes from command line. Chack them using

julia --project=. --color=yes "performance_benchmarks.jl" --help

$ wget https://raw.githubusercontent.com/tejank10/Duckietown.jl/master/src/meshes/tree.obj 
$ wget https://raw.githubusercontent.com/tejank10/Duckietown.jl/master/src/meshes/tree.mtl

Additional Examples

Duckietown.jl uses RayTracer.jl for generating renders of a self-driving car environment. For more complex examples of RayTracer, checkout that project.

SUPPORTING AND CITING:

This software was developed as part of academic research. If you would like to help support it, please star the repository. If you use this software as part of your research, teaching, or other activities, we would be grateful if you could cite the following:

@article{Pal2020,
  doi = {10.21105/jcon.00037},
  url = {https://doi.org/10.21105/jcon.00037},
  year = {2020},
  publisher = {The Open Journal},
  volume = {1},
  number = {1},
  pages = {37},
  author = {Avik Pal},
  title = {RayTracer.jl: A Differentiable Renderer that supports Parameter Optimization for Scene Reconstruction},
  journal = {Proceedings of the JuliaCon Conferences}
}

CURRENT ROADMAP

These are not listed in any particular order

  • Add more types of common objects (use mesh rendering for this)
  • Add support for rendering arbitrary mesh
  • Inverse Rendering Examples
  • Texture Rendering
  • Application in Machine Learning Models through Flux (work in progress)
  • Major Overhaul using Flux3D.jl
  • Exploit the latest improvements to Flux and Zygote

More Repositories

1

Lux.jl

Explicitly Parameterized Neural Networks in Julia
Julia
276
star
2

Wandb.jl

Unofficial Julia bindings for logging experiments to wandb.ai
Julia
82
star
3

FluxMPI.jl

Distributed Data Parallel Training of Deep Neural Networks
Julia
56
star
4

FastStyleTransfer.jl

Fast Neural Style Transfer in Julia
Julia
28
star
5

RegNeuralDE.jl

Official Implementation of "Opening the Blackbox: Accelerating Neural Differential Equations by Regularizing Internal Solver Heuristics" (ICML 2021)
Julia
27
star
6

DeepLearningBenchmarks

Benchmarks across Deep Learning Frameworks in Julia and Python
Julia
24
star
7

SimpleConfig.jl

A simple way to specify experiment configurations
Julia
16
star
8

LocalRegNeuralDE.jl

Local regularization of Neural Differential Equations
Julia
7
star
9

smthesis

On efficient training and inference of Neural Differential Equations
TeX
4
star
10

CNNVisualize.jl

CNN Visualizations in Flux
Julia
4
star
11

cs335-compiler

CS335 Compilers IITK Course Project
Python
3
star
12

DeepDream.jl

Implementation of Google's Deep Dream in Julia using Flux
Julia
3
star
13

ML_DL_Assignments

Machine Learning And Deep Learning Basics covered by working on Commonplace Datasets
Jupyter Notebook
3
star
14

ESC101-lab-Y17

ESC101 IIT Kanpur Lab Assignment Solutions
C
2
star
15

RobustNonlinearSolvers.jl

Testing out Nonlinear Solvers that Automatically Switch between Discrete and Continuous Variants
Julia
2
star
16

NNPACK.jl

Julia wrapper for NNPACK
Julia
1
star
17

hybrid_recommender

Python
1
star
18

MURA.jl

Densenet and Other Models on the MURA (musculoskeletal radiographs) Dataset using Flux
Julia
1
star
19

BatchedNonlinearSolve.jl

Test bed for batched non linear solve algorithms (mostly for machine learning applications)
Julia
1
star