just-ba
Minimal, fast bundle adjustment, with Python bindings. Its main job is refining reconstructions that come with noisy camera poses from ARKit, ARCore or another tracker: the tracker's poses become relative or global pose priors, and the solver refines poses, points and intrinsics against the keypoint observations.
- Backends: CPU (double precision, the reference), Metal on Apple Silicon, CUDA on NVIDIA GPUs (single precision on the GPUs).
- Correctness means agreeing with Ceres Solver on the same problem.
- Camera models SIMPLE_PINHOLE, PINHOLE, SIMPLE_RADIAL, RADIAL, OPENCV and OPENCV_FISHEYE, with COLMAP's parameter order.
- Priors: relative and global pose priors, gravity, a Manhattan prior from line segments, and depth at keypoints.
Install
| Package | Platforms | Backends |
|---|---|---|
pip install just-ba |
Linux x86_64, macOS arm64 (13 or later), Windows x86_64 | CPU; Metal on macOS |
pip install just-ba-cu12 |
Linux x86_64, Windows x86_64 | CPU and CUDA 12 |
pip install just-ba-cu13 |
Linux x86_64, Windows x86_64 | CPU and CUDA 13 |
Install one of them: all three provide the just_ba module. The CUDA packages
install NVIDIA's cuDSS, cuBLAS and NVRTC from pip and need an NVIDIA driver.
Python 3.12 or later.
import just_ba
print(just_ba.__version__, just_ba.compiled_backends())
print(just_ba.backend_available(just_ba.Backend.CUDA))
Use
just_ba.refine(scene, keypoints, matches=...) is the main entry point: a
Problem holding the camera and the pose priors, one (n, 2) keypoint array per
image, and pairwise matches (m, 4). just_ba.poses_from_camera_to_world(T, "arkit") converts ARKit or ARCore camera-to-world matrices to the library's
poses. just_ba.solve(problem, options) solves a Problem that already has its
points and observations.
Licence: Apache-2.0.
Metadata
Release files for just-ba-cu12 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| just_ba_cu12-0.1.8-cp312-abi3-win_amd64.whl | CPython 3.12 | abi3 | Windows x86-64 | Details for just_ba_cu12-0.1.8-cp312-abi3-win_amd64.whl |
| just_ba_cu12-0.1.8-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 | Details for just_ba_cu12-0.1.8-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
Total release size: 4.5 MB
Release files / just_ba_cu12-0.1.8-cp312-abi3-win_amd64.whl
| Download URL | just_ba_cu12-0.1.8-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
bf8cc439e335152f2b2032ca8af91fc0250f0740aaa9499e1c48c6e127eaac30
|
|
BLAKE2b-256 checksum How to use checksums |
155fa6cfffd47150361ad6fb5563c68959082ec7d79cf3bacb1b198061536f35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / just_ba_cu12-0.1.8-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | just_ba_cu12-0.1.8-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2555abecd7b6e33ce54275e0b26a1962221d5b9ea91fee9711d180f6f3652b09
|
|
BLAKE2b-256 checksum How to use checksums |
543b168dfa58a0cc5d6cfc7c4c76e3597bbf6d1d133f20334bceacc6f7458040
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for just-ba-cu12 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for just_ba_cu12-0.1.8-cp312-abi3-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.