All Projects → avik-pal → Raytracer.jl

avik-pal / Raytracer.jl

Licence: mit
Differentiable RayTracing in Julia

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to Raytracer.jl

least-squares-cpp
A single header-only C++ library for least squares fitting.
Stars: ✭ 46 (-58.18%)
Mutual labels:  optimization, gradient-descent
Far Ho
Gradient based hyperparameter optimization & meta-learning package for TensorFlow
Stars: ✭ 161 (+46.36%)
Mutual labels:  gradient-descent, optimization
Optim
OptimLib: a lightweight C++ library of numerical optimization methods for nonlinear functions
Stars: ✭ 411 (+273.64%)
Mutual labels:  gradient-descent, optimization
descent
First-order optimization tools
Stars: ✭ 23 (-79.09%)
Mutual labels:  optimization, gradient-descent
Cppnumericalsolvers
a lightweight C++17 library of numerical optimization methods for nonlinear functions (Including L-BFGS-B for TensorFlow)
Stars: ✭ 638 (+480%)
Mutual labels:  gradient-descent, optimization
Neural Tangents
Fast and Easy Infinite Neural Networks in Python
Stars: ✭ 1,357 (+1133.64%)
Mutual labels:  gradient-descent
Yabox
Yet another black-box optimization library for Python
Stars: ✭ 103 (-6.36%)
Mutual labels:  optimization
Monkeys
A strongly-typed genetic programming framework for Python
Stars: ✭ 98 (-10.91%)
Mutual labels:  optimization
Limes
Link Discovery Framework for Metric Spaces.
Stars: ✭ 94 (-14.55%)
Mutual labels:  optimization
Optimviz
Visualize optimization algorithms in MATLAB.
Stars: ✭ 106 (-3.64%)
Mutual labels:  optimization
Strategems.jl
Quantitative systematic trading strategy development and backtesting in Julia
Stars: ✭ 106 (-3.64%)
Mutual labels:  optimization
Juniper.jl
A JuMP-based Nonlinear Integer Program Solver
Stars: ✭ 103 (-6.36%)
Mutual labels:  optimization
Dists
IQA: Deep Image Structure and Texture Similarity Metric
Stars: ✭ 101 (-8.18%)
Mutual labels:  optimization
Grl
Robotics tools in C++11. Implements soft real time arm drivers for Kuka LBR iiwa plus V-REP, ROS, Constrained Optimization based planning, Hand Eye Calibration and Inverse Kinematics integration.
Stars: ✭ 105 (-4.55%)
Mutual labels:  optimization
Advisor
Open-source implementation of Google Vizier for hyper parameters tuning
Stars: ✭ 1,359 (+1135.45%)
Mutual labels:  optimization
Pg stat kcache
Gather statistics about physical disk access and CPU consumption done by backends.
Stars: ✭ 106 (-3.64%)
Mutual labels:  optimization
Qreverse
A small study in hardware accelerated AoS reversal
Stars: ✭ 97 (-11.82%)
Mutual labels:  optimization
Jump.jl
Modeling language for Mathematical Optimization (linear, mixed-integer, conic, semidefinite, nonlinear)
Stars: ✭ 1,383 (+1157.27%)
Mutual labels:  optimization
Qmlt
The Quantum Machine Learning Toolbox (QMLT) is a Strawberry Fields application that simplifies the optimization of variational quantum circuits (also known as parametrized quantum circuits).
Stars: ✭ 106 (-3.64%)
Mutual labels:  optimization
Node Finance
Module for portfolio optimization, prices and options
Stars: ✭ 101 (-8.18%)
Mutual labels:  optimization

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 AD systems like Diffractor (which will potentially have good support for mutations) / define the adjoints directly using ChainRules since Zygote will likely not be having these features (note there has not been an official announcement and the statement is based on some discussions in zulip forum)

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

  • [X] Add more types of common objects (use mesh rendering for this)
  • [X] Add support for rendering arbitrary mesh
  • [X] Inverse Rendering Examples
  • [X] 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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].