A miniature version of DPVO. Using Rerun viewer, Pixi and Gradio for easy use
Easily installable via Pixi.
git clone https://github.com/pablovela5620/mini-dpvo.git
cd mini-dpvo
pixi install
pixi run post-installmini-dpvonow uses the prebuiltlietorchpackage from Pixi instead of building the vendored copy in-tree.lietorchis ABI-coupled to the exact PyTorch/libtorch build. Ifpixiupgradespytorchwithout a matchinglietorchbuild, imports will fail with undefined-symbol errors fromlietorch_backends.- The current working combination is driven by
pyproject.toml/pixi.lock; avoid changingpytorch,libtorch,torchvision, orlietorchindependently. torch_scatterwas intentionally removed from the runtime dependency set and replaced with local scatter helpers implemented with native PyTorch ops inmini_dpvo/scatter_utils.py.- This was not a cleanup preference. It was a compatibility decision required to move
mini-dpvoonto the newer PyTorch/CUDA stack needed by the prebuiltlietorchpackage and the current 5090-tested environment. - In practice: reintroducing
torch_scattermeans re-checking wheel availability and ABI compatibility against the exactpytorch/libtorch/CUDA combination in this repo. Do not assume a PyPI or PyG wheel will be compatible just because it exists for a nearby Torch/CUDA version. - That
torch_scatterreplacement is a narrow compatibility workaround for the current app/demo path and has not been broadly validated outside this workflow yet. - The package still builds its own CUDA extensions (
mini_dpvo._cuda_corrandmini_dpvo._cuda_ba) locally throughpixi run post-install. - Example assets and checkpoints are now fetched through
hf download, nothuggingface-cli. pixi run demohas been validated on an RTX 5090 with the current lockfile.pixi run rerunand GUI flows require a valid display session. In headless shells, Rerun will fail unlessDISPLAY/XAUTHORITYare set.
Hosted Demos can be found in either lightning studio or huggingface spaces
To run the gradio frontend
pixi run app
To run using just the rerun visualizer
pixi run rerun
To run the full demo pipeline
pixi run demo
look in the pixi.toml file to see exactly what each command does under tasks
Original Code and paper from DPVO
@article{teed2023deep,
title={Deep Patch Visual Odometry},
author={Teed, Zachary and Lipson, Lahav and Deng, Jia},
journal={Advances in Neural Information Processing Systems},
year={2023}
}
