Repository navigation
Add compressive sensing and MRI benchmarks, rename existing ones - #15
Merged
Merged
Conversation
PyProximal 0.13 ships Regularization by Denoising (RED). bm3d is added as a dependency, wrapped in pylops_bench.denoisers.bm3d_denoise for the Plug-and-Play and RED solvers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Recovery of a sparse vector (256 samples, 16 spikes) from 64 random Gaussian measurements, comparing L1 solvers (ISTA, FISTA, AA-ISTA, TwIST, IRLS, ADMM basis pursuit, primal-dual BPDN), greedy/L0 solvers (OMP, IHT) and LSQR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reconstruction of the Shepp-Logan phantom from k-space data sampled along 30 seeded random radial lines (pylops.medical.MRI2D with an explicit mask), comparing zero filling, FISTA in the wavelet domain, isotropic and anisotropic TV (Split Bregman, primal-dual, linearized ADMM), and Plug-and-Play and RED with the BM3D denoiser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
denoising -> image_denoising, poststack -> seismic_poststack and prestack -> seismic_prestack, with their result tables, tests and page titles, so that names follow the domain_problem pattern. The objective names are unchanged, as they are part of the results upsert key. The benchmark table in the README lists the new benchmarks and is sorted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The seeded mask with 30 radial lines samples about 18 % of k-space, not 16 %. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two new benchmarks based on the PyLops/PyProximal tutorials, one new solver, and a renaming of three existing benchmarks.
compressive_sensing(new): recovery of a sparse vector (256 samples, 16 spikes) from 64 random Gaussian measurements. Compares L1 solvers (ISTA, FISTA, AA-ISTA, TwIST, IRLS, ADMM basis pursuit, primal-dual BPDN), greedy/L0 solvers (OMP, IHT) and an LSQR baseline. At this sparsity the convex L1 solvers recover the model (~51 dB) and the greedy ones do not (~21–23 dB).mri(new): Shepp-Logan phantom from k-space sampled along 30 seeded random radial lines (pylops.medical.MRI2Dwith an explicit mask, since the random masks ofMRI2Dare not seeded). Compares zero filling, FISTA-DWT2D, isotropic and anisotropic TV (Split Bregman, primal-dual, linearized ADMM), and Plug-and-Play and RED with BM3D. Anisotropic TV is best (~42–43 dB), isotropic TV ~36 dB, PnP/RED 23–27 dB.image_deblurring: newLinearizedADMM-rMSsolver (relaxed Mumford-Shah), 21.7 dB, close to the current leader.>= 0.13.0(ships RED),bm3dadded as a dependency, and a sharedpylops_bench.denoisers.bm3d_denoisehelper for PnP/RED.denoising→image_denoising,poststack→seismic_poststack,prestack→seismic_prestack, with their result tables (moved withgit mv, so existing leaderboards carry over), tests and page titles. Objective names are unchanged, as they are part of the results upsert key. The README table is sorted.Since shared code changed, CI will rerun every benchmark.
Notes
auto_benchmarks/denoising.html→auto_benchmarks/image_denoising.html).epsRL1sin PyLops'splitbregmanacts as a squared L1 weight, unlike its docs, and thattol=0skips all outer iterations: splitbregman: documented cost function is not consistent with the implementation (epsRL1s acts as squared L1 weight) pylops#808.asession/new_benchmarks/SUMMARY.md.Test plan
uv run pytest(45 passed)uv run benchopt test benchmarks/<name> --skip-envfor all eight benchmarks, including the existing ones after the PyProximal upgrade and after the renaminguv run benchopt runofcompressive_sensingandmri(withrun_config.yml) and of the new deblurring solver; results collected withscripts/collect_results.pyuv run sphinx-build -W docs ...with those results and after the renaming.github/scripts/find_benchmarks.py --alllists the eight benchmarks with the new names🤖 Generated with Claude Code