← Back to Leaderboard
Ddeepinv

deepinv/deepinv

Modular PyTorch SDK for imaging inverse problems and learned reconstruction

AI Framework
Engineering Health (Methodology)
A+ · 95/100
Maintenance Activity
● Updated yesterday
Latest Release
v0.5.0
Commercial License Check
BSD-3-Clause · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption20/25
Release Cadence20/20
License Clarity20/20
GPU
Total Stars
★ 863
24h Growth
+1
7d Growth
+2
Forks
234

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

deepinv/deepinv Star History (2023-03-15 - 2026-12-03) ALL-TIME STAR HISTORY (2023-03 – 2026-12) +862 in 1359d · avg +1/day 911 456 0 2023-03-15: ★ 12023-06-10: ★ 202023-09-02: ★ 912023-11-25: ★ 1222024-02-17: ★ 1672024-05-11: ★ 2132024-08-03: ★ 2462024-10-26: ★ 2982025-01-18: ★ 3502025-04-12: ★ 3722025-07-05: ★ 4522025-09-27: ★ 5102025-12-20: ★ 6022026-03-14: ★ 6662026-06-06: ★ 7522026-08-29: ★ 7942026-12-03: ★ 863 ★ 863 2023-03 2025-01 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Operator abstraction: Vary the reconstruction method while keeping the measurement model fixed.
Learned priors: Use pretrained reconstructors for direct inference or denoisers within plug-and-play solvers.
Solver design: Experiment with optimization, unrolled architectures, and task-specific training losses in the same library.
Uncertainty: Use sampling algorithms and diffusion models to study ambiguity beyond a single reconstruction.
Acquisition support: v0.5.0 adds camera RAW loading with ISP metadata and plane-wave ultrasound simulation and reconstruction for RF data.
Runtime: Python 3.11+, PyTorch 2.2.0+, and optional dataset and denoisers installation extras.
Best For

Research and prototyping teams comparing reconstruction methods under a shared measurement model, or testing learned priors and uncertainty methods in PyTorch.

Skip If

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.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Comparison vs. Top Voice, Vision & Video Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
deepinv ★863+2PythonBSD-3-ClauseModular PyTorch SDK for imaging inverse problems and learned reconstruction
diffusers35k+36PythonApache-2.0A modular PyTorch SDK for running and customizing multimodal diffusion pipelines
espnet10k+8PythonApache-2.0A recipe-driven PyTorch toolkit for training and running speech models locally
whisperX26.5k+677PythonBSD-2-ClauseBatched 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/deepinv/deepinv.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

deepinv/deepinv Star History on RepoForAI

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?

Start with an operator that represents your measurement process, then pair it with a pretrained reconstructor or build a solver around a denoiser. Check input and output shapes, dtypes, and device placement on a small measurement batch before adding training or sampling. The integration unit is a Python/PyTorch workflow, not a remote API.

What runtime and GPU memory should I budget for?

The package requires Python 3.11+ and PyTorch 2.2.0+. There is no verified minimum VRAM figure. Peak memory depends on measurement and image dimensions, the operator and network, batch size, concurrent workloads, and whether gradients are retained through solver steps. Profile a representative case with the intended training or inference configuration before choosing hardware.

Can I embed the library in a commercial product and run it on my own infrastructure?

BSD-3-Clause allows commercial use and self-hosting, subject to its conditions, including retention of required notices and no implied endorsement. Review the terms of any model weights, datasets, and third-party dependencies separately; the library license does not establish rights to those assets.

When should I choose DeepInverse over a task-specific toolkit or a custom PyTorch pipeline?

Use DeepInverse when you need to compare several priors or solvers against the same measurement operator. For one fixed task and a settled reconstruction method, a modality-specific toolkit or a small native PyTorch pipeline may be easier to validate and maintain. If an operator is missing, estimate the cost of implementing and validating it before committing.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining deepinv/deepinv? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature deepinv/deepinv on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare