deepinv/deepinv
Modular PyTorch SDK for imaging inverse problems and learned reconstruction
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
DeepInverse is an in-process Python/PyTorch SDK that separates the measurement model from the reconstruction method. An imaging operator describes how observations are formed. Those observations can feed a pretrained reconstructor directly, or an iterative solver can combine the operator with a learned prior such as a denoiser. Dataset-building utilities and inverse-problem losses support training workflows without forcing users to adopt one solver family.
The project is organized around the deepinv/ package, with separate docs/ and examples/ trees. pyproject.toml defines a setuptools build, Python 3.11+, and visible dependencies including torch>=2.2.0, NumPy, Matplotlib, and tqdm. The practical integration boundary is the Python API: choose compatible operators, models, and algorithms and compose them in the calling application. No separate service or plugin protocol is specified.
Key Capabilities & Differentiators
The library supports direct reconstruction with pretrained networks, plug-and-play restoration with denoisers, iterative optimization, and unrolled architectures. Inverse-problem losses and dataset construction support controlled training experiments. Sampling algorithms and diffusion models offer a separate route for uncertainty studies when one reconstruction is not enough to characterize the solution.
Recent APIs show the distinction between acquisition support and evaluation. In v0.5.0, deepinv.utils.load_raw returns a PyTorch tensor plus an ISP metadata dictionary, while deepinv.physics.UltrasoundPlaneWave supports plane-wave ultrasound simulation and reconstruction from raw RF data. In v0.4.2, deepinv.loss.metric.RecoveryCoefficient measures reconstructed activity relative to ground truth within a mask and provides a loss transformation for training. These features do not establish support for arbitrary camera formats or scanner workflows.
Trade-offs & Limitations
Compared with writing a pipeline directly in PyTorch, DeepInverse supplies reusable operators, priors, and solvers that make controlled comparisons easier: keep the measurement model fixed and swap the reconstruction component. The cost of that flexibility is integration work. You still need to check that the operator matches the acquisition, that tensor conventions line up, and that the prior and solver are appropriate for the task. A modality-specific toolkit may be a better fit for a fixed protocol with established preprocessing and validation requirements.
A pretrained feed-forward model avoids a solver loop, while iterative or sampling-based workflows can repeat operator and model evaluations. Neither throughput nor GPU capacity can be inferred from the API alone; measure the selected workflow at the target resolution and concurrency. BSD-3-Clause permits commercial integration subject to its conditions, but weights, datasets, and dependencies require separate review.
Hardware & Deployment Guide
Install in a Python 3.11+ environment with pip install deepinv and use PyTorch 2.2.0 or later. pip install 'deepinv[dataset,denoisers]' adds optional dependencies; uv, pixi, and conda setup paths are also available. This is a locally integrated library, not a turnkey hosted API or containerized service. For GPU use, select a PyTorch build compatible with the host and profile representative data: image dimensions, batch size, model choice, and retained iteration state can all affect peak VRAM. For offline runs, stage the required packages, weights, and data ahead of time.
The release sequence broadens the experimental surface: v0.4.1 adds deepinv.optim.SIRT for tomography; v0.4.2 adds the recovery coefficient metric; and v0.5.0 adds RAW loading and plane-wave ultrasound support. The package is classified as Beta, so pin the tested library and runtime versions and reproduce a reference reconstruction before upgrading.
dataset and denoisers installation extras.Research and prototyping teams comparing reconstruction methods under a shared measurement model, or testing learned priors and uncertainty methods in PyTorch.
You need a turnkey reconstruction service, a scanner integration validated for a specific device, or a small fixed pipeline with no need to swap operators or solvers.
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| deepinv ★ | 863 | +2 | Python | BSD-3-Clause | Modular PyTorch SDK for imaging inverse problems and learned reconstruction |
| diffusers | 35k | +36 | Python | Apache-2.0 | A modular PyTorch SDK for running and customizing multimodal diffusion pipelines |
| espnet | 10k | +8 | Python | Apache-2.0 | A recipe-driven PyTorch toolkit for training and running speech models locally |
| whisperX | 26.5k | +677 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/deepinv/deepinv.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about deepinv
How do I integrate DeepInverse into an existing reconstruction pipeline?
What runtime and GPU memory should I budget for?
Can I embed the library in a commercial product and run it on my own infrastructure?
When should I choose DeepInverse over a task-specific toolkit or a custom PyTorch pipeline?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy