-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mike/style-guide-retry
- Loading branch information
Showing
12 changed files
with
279 additions
and
74 deletions.
There are no files selected for viewing
Submodule data
updated
19 files
+150 −155 | notebooks/admm_nonnegative_sparse_coding.ipynb | |
+69 −64 | notebooks/admm_ppp_bm3d_deconvolution.ipynb | |
+99 −91 | notebooks/admm_ppp_bm3d_demosaicing.ipynb | |
+494 −0 | notebooks/admm_ppp_bm3d_svmbir_cg.ipynb | |
+494 −0 | notebooks/admm_ppp_bm3d_svmbir_prox.ipynb | |
+75 −70 | notebooks/admm_ppp_dncnn_deconvolution.ipynb | |
+117 −109 | notebooks/admm_tv_circ_deconvolution.ipynb | |
+90 −84 | notebooks/admm_tv_ct.ipynb | |
+202 −333 | notebooks/admm_tv_ct_weighted.ipynb | |
+117 −109 | notebooks/admm_tv_deconvolution.ipynb | |
+277 −274 | notebooks/admm_tv_isotropic.ipynb | |
+191 −185 | notebooks/deconv_microscopy.ipynb | |
+3 −0 | notebooks/examples.rst | |
+83 −78 | notebooks/pcg_ct.ipynb | |
+92 −86 | notebooks/pgm_ppp_bm3d_deconvolution.ipynb | |
+52 −52 | notebooks/pgm_sparse_coding.ipynb | |
+212 −216 | notebooks/pgm_stepsize_blockarray.ipynb | |
+215 −238 | notebooks/pgm_stepsize_poisson.ipynb | |
+169 −188 | notebooks/pgm_tv_isotropic.ipynb |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
.. _example_notebooks: | ||
|
||
Usage Examples | ||
-------------- | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
|
||
Computed Tomography | ||
=================== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
examples/admm_tv_ct | ||
examples/admm_tv_ct_weighted | ||
examples/pcg_ct | ||
examples/admm_ppp_bm3d_svmbir_cg | ||
examples/admm_ppp_bm3d_svmbir_prox | ||
|
||
|
||
Deconvolution | ||
============= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
examples/admm_ppp_bm3d_deconvolution | ||
examples/admm_ppp_dncnn_deconvolution | ||
examples/admm_tv_deconvolution | ||
examples/admm_tv_circ_deconvolution | ||
examples/pgm_ppp_bm3d_deconvolution | ||
examples/deconv_microscopy | ||
|
||
|
||
Sparse Coding | ||
============= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
examples/admm_nonnegative_sparse_coding | ||
examples/pgm_sparse_coding | ||
|
||
|
||
Miscellaneous | ||
============= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
examples/admm_ppp_bm3d_demosaicing | ||
examples/admm_tv_isotropic | ||
examples/pgm_stepsize_blockarray | ||
examples/pgm_stepsize_poisson | ||
examples/pgm_tv_isotropic |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/usr/bin/env python | ||
|
||
import re | ||
from pathlib import Path | ||
|
||
src = "scripts/index.rst" | ||
|
||
# Make dict mapping script names to docstring header titles | ||
titles = {} | ||
scripts = list(Path("scripts").glob("*py")) | ||
for s in scripts: | ||
prevline = None | ||
with open(s, "r") as sfile: | ||
for line in sfile: | ||
if line[0:3] == "===": | ||
titles[s.name] = prevline.rstrip() | ||
break | ||
else: | ||
prevline = line | ||
|
||
|
||
# Build README in scripts directory | ||
dst = "scripts/README.rst" | ||
with open(dst, "w") as dstfile: | ||
with open(src, "r") as srcfile: | ||
for line in srcfile: | ||
# Detect lines containing script filenames | ||
m = re.match(r"(\s+)- ([^\s]+.py)", line) | ||
if m: | ||
prespace = m.group(1) | ||
name = m.group(2) | ||
title = titles[name] | ||
print( | ||
"%s`%s <%s>`_\n%s %s" % (prespace, name, name, prespace, title), file=dstfile | ||
) | ||
else: | ||
print(line, end="", file=dstfile) | ||
|
||
|
||
# Build examples index for docs | ||
dst = "../docs/source/examples.rst" | ||
prfx = "examples/" | ||
with open(dst, "w") as dstfile: | ||
print(".. _example_notebooks:\n", file=dstfile) | ||
with open(src, "r") as srcfile: | ||
for line in srcfile: | ||
# Detect lines containing script filenames | ||
m = re.match(r"(\s+)- ([^\s]+).py", line) | ||
if m: | ||
print(m.group(1) + prfx + m.group(2), file=dstfile) | ||
else: | ||
print(line, end="", file=dstfile) | ||
# Add toctree statements after section headings | ||
if line[0:3] == line[0] * 3 and line[0] in ["-", "="]: | ||
print("\n.. toctree::\n :maxdepth: 1", file=dstfile) |
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
Usage Examples | ||
-------------- | ||
|
||
|
||
Computed Tomography | ||
=================== | ||
|
||
`admm_tv_ct.py <admm_tv_ct.py>`_ | ||
Few-View CT (ADMM w/ Total Variation) | ||
`admm_tv_ct_weighted.py <admm_tv_ct_weighted.py>`_ | ||
Low-Dose CT (ADMM w/ Total Variation) | ||
`pcg_ct.py <pcg_ct.py>`_ | ||
CT with Preconditioned Conjugate Gradient | ||
`admm_ppp_bm3d_svmbir_cg.py <admm_ppp_bm3d_svmbir_cg.py>`_ | ||
CT Reconstruction (ADMM Plug-and-Play Priors w/ BM3D, SVMBIR+CG) | ||
`admm_ppp_bm3d_svmbir_prox.py <admm_ppp_bm3d_svmbir_prox.py>`_ | ||
CT Reconstruction (ADMM Plug-and-Play Priors w/ BM3D, SVMBIR+Prox) | ||
|
||
|
||
Deconvolution | ||
============= | ||
|
||
`admm_ppp_bm3d_deconvolution.py <admm_ppp_bm3d_deconvolution.py>`_ | ||
Image Deconvolution (ADMM Plug-and-Play Priors w/ BM3D) | ||
`admm_ppp_dncnn_deconvolution.py <admm_ppp_dncnn_deconvolution.py>`_ | ||
Image Deconvolution (ADMM Plug-and-Play Priors w/ DnCNN) | ||
`admm_tv_deconvolution.py <admm_tv_deconvolution.py>`_ | ||
Image Deconvolution (ADMM w/ Total Variation) | ||
`admm_tv_circ_deconvolution.py <admm_tv_circ_deconvolution.py>`_ | ||
Image Deconvolution (ADMM w/ Total Variation and Circulant Blur) | ||
`pgm_ppp_bm3d_deconvolution.py <pgm_ppp_bm3d_deconvolution.py>`_ | ||
Image Deconvolution (PGM Plug-and-Play Priors w/ BM3D) | ||
`deconv_microscopy.py <deconv_microscopy.py>`_ | ||
Deconvolution Microscopy | ||
|
||
|
||
Sparse Coding | ||
============= | ||
|
||
`admm_nonnegative_sparse_coding.py <admm_nonnegative_sparse_coding.py>`_ | ||
Non-negative Basis Pursuit DeNoising (ADMM) | ||
`pgm_sparse_coding.py <pgm_sparse_coding.py>`_ | ||
Basis Pursuit DeNoising (Accelerated PGM) | ||
|
||
|
||
Miscellaneous | ||
============= | ||
|
||
`admm_ppp_bm3d_demosaicing.py <admm_ppp_bm3d_demosaicing.py>`_ | ||
Image Demosaicing (ADMM Plug-and-Play Priors w/ BM3D) | ||
`admm_tv_isotropic.py <admm_tv_isotropic.py>`_ | ||
Isotropic Total Variation | ||
`pgm_stepsize_blockarray.py <pgm_stepsize_blockarray.py>`_ | ||
Non-negative Poisson Loss Reconstruction (APGM w/ adaptive PGMStepSize) | ||
`pgm_stepsize_poisson.py <pgm_stepsize_poisson.py>`_ | ||
Non-negative Poisson Loss Reconstruction (APGM w/ adaptive PGMStepSize) | ||
`pgm_tv_isotropic.py <pgm_tv_isotropic.py>`_ | ||
Isotropic Total Variation (Accelerated PGM) |
Oops, something went wrong.