Theseus is a library for differentiable nonlinear optimization that lets you embed solvers like Gauss-Newton or Levenberg–Marquardt inside PyTorch models. Problems are expressed as factor graphs with variables on manifolds (e.g., SE(3), SO(3)), so classical robotics and vision tasks—bundle adjustment, pose graph optimization, hand–eye calibration—can be written succinctly and solved efficiently. Because solves are differentiable, you can backpropagate through optimization to learn cost weights, feature extractors, or initialization networks end-to-end. The implementation supports batched optimization on GPU, robust losses, damping strategies, and custom factors, making it practical for real-time systems. Helper packages provide geometry primitives and utilities for composing priors, relative constraints, and measurement models. Theseus bridges the gap between classical optimization and deep learning, enabling hybrid systems that learn components.

Features

  • Differentiable Gauss-Newton and Levenberg–Marquardt solvers in PyTorch
  • Factor-graph API with manifold variables like SE(3) and SO(3)
  • Batched, GPU-accelerated solves with robust loss functions
  • Autograd support to learn costs, features, or initializations end-to-end
  • Geometry helpers and reusable factors for SLAM and bundle adjustment
  • Extensible design for custom variables, factors, and damping policies

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Theseus

Theseus Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Theseus!

Additional Project Details

Programming Language

Python

Related Categories

Python Libraries

Registered

2025-10-07