peabody124 / nimblephysics

Nimble: Physics Engine for Deep Learning

Home Page:http://www.nimblephysics.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stanford Nimble Logo

Tests

Stanford Nimble

pip3 install nimblephysics

** BETA SOFTWARE **

Read our docs and the paper.

Use physics as a non-linearity in your neural network. A single timestep, nimble.timestep(state, controls), is a valid PyTorch function.

Forward pass illustration

We support an analytical backwards pass, that works even through contact and friction.

Backpropagation illustration

It's as easy as:

from nimble import timestep

# Everything is a PyTorch Tensor, and this is differentiable!!
next_state = timestep(world, current_state, control_forces)

Nimble started life as a fork of the popular DART physics engine, with analytical gradients and a PyTorch binding. We've worked hard to maintain as much backwards compatability as we can, so many simulations that worked in DART should translate directly to Nimble.

Check out our website for more information.

Installing on Arm64 Macs

We don't yet publish Arm64 binaries to PyPI from our CI system, so you may not be able to pip3 install nimblephysics from a new Arm64 Mac. We will endeavor to manually push binaries occassionally, but until GitHub Actions supports using Arm64 Mac runners, the solution is to clone this repo, then run

  • ci/mac/install_dependencies.sh
  • ci/mac/manually_build_arm64_wheels.sh That will install the dependencies you need, and then build and install the Python package. Please create Issues if you run into problems, and we'll do our best to fix them.

About

Nimble: Physics Engine for Deep Learning

http://www.nimblephysics.org

License:Other


Languages

Language:C++ 73.8%Language:JavaScript 18.0%Language:Python 4.6%Language:TypeScript 2.1%Language:CMake 1.0%Language:Shell 0.2%Language:Dockerfile 0.2%Language:C 0.1%Language:HTML 0.1%Language:Jupyter Notebook 0.1%Language:SCSS 0.0%Language:CSS 0.0%Language:Roff 0.0%Language:Makefile 0.0%Language:Ruby 0.0%