:orphan: .. _examples: Examples ======== All the examples have a download link at the end. You can load the example's notebook on `Google Colab `_ and run them by adding the line :: pip install git+https://github.com/deepinv/deepinv.git#egg=deepinv to the top of the notebook (e.g., `as in here `_). .. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
Basics ------ .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_lidar_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_lidar.py` .. raw:: html
Single photon lidar operator for depth ranging.
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_dip_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_dip.py` .. raw:: html
Reconstructing an image using the deep image prior.
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_dataset_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_dataset.py` .. raw:: html
Creating your own dataset
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_transforms_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_transforms.py` .. raw:: html
Image transforms for equivariance & augmentations
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_hf_dataset_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_hf_dataset.py` .. raw:: html
Using huggingface dataset
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_ptychography_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_ptychography.py` .. raw:: html
Ptychography phase retrieval
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_physics_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_physics.py` .. raw:: html
Creating a forward operator.
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_remote_sensing_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_remote_sensing.py` .. raw:: html
Remote sensing with satellite images
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_microscopy_3d_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_microscopy_3d.py` .. raw:: html
3D diffraction PSF
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_train_inpainting_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_train_inpainting.py` .. raw:: html
Training a reconstruction network.
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_physics_tour_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_physics_tour.py` .. raw:: html
A tour of forward sensing operators
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_custom_prior_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_custom_prior.py` .. raw:: html
Image deblurring with custom deep explicit prior.
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_loading_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_loading.py` .. raw:: html
Saving and loading models
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_blur_tour_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_blur_tour.py` .. raw:: html
A tour of blur operators
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_phase_retrieval_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_phase_retrieval.py` .. raw:: html
Random phase retrieval and reconstruction methods.
.. raw:: html
.. only:: html .. image:: /auto_examples/basics/images/thumb/sphx_glr_demo_tour_mri_thumb.png :alt: :ref:`sphx_glr_auto_examples_basics_demo_tour_mri.py` .. raw:: html
Tour of MRI functionality in DeepInverse
.. thumbnail-parent-div-close .. raw:: html
Optimization ------------ .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/optimization/images/thumb/sphx_glr_demo_TV_minimisation_thumb.png :alt: :ref:`sphx_glr_auto_examples_optimization_demo_TV_minimisation.py` .. raw:: html
Image deblurring with Total-Variation (TV) prior
.. raw:: html
.. only:: html .. image:: /auto_examples/optimization/images/thumb/sphx_glr_demo_wavelet_prior_thumb.png :alt: :ref:`sphx_glr_auto_examples_optimization_demo_wavelet_prior.py` .. raw:: html
Image inpainting with wavelet prior
.. raw:: html
.. only:: html .. image:: /auto_examples/optimization/images/thumb/sphx_glr_demo_3D_wavelets_thumb.png :alt: :ref:`sphx_glr_auto_examples_optimization_demo_3D_wavelets.py` .. raw:: html
3D wavelet denoising
.. thumbnail-parent-div-close .. raw:: html
Plug-and-Play ------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/plug-and-play/images/thumb/sphx_glr_demo_PnP_mirror_descent_thumb.png :alt: :ref:`sphx_glr_auto_examples_plug-and-play_demo_PnP_mirror_descent.py` .. raw:: html
Plug-and-Play algorithm with Mirror Descent for Poisson noise inverse problems.
.. raw:: html
.. only:: html .. image:: /auto_examples/plug-and-play/images/thumb/sphx_glr_demo_vanilla_PnP_thumb.png :alt: :ref:`sphx_glr_auto_examples_plug-and-play_demo_vanilla_PnP.py` .. raw:: html
Vanilla PnP for computed tomography (CT).
.. raw:: html
.. only:: html .. image:: /auto_examples/plug-and-play/images/thumb/sphx_glr_demo_PnP_DPIR_deblur_thumb.png :alt: :ref:`sphx_glr_auto_examples_plug-and-play_demo_PnP_DPIR_deblur.py` .. raw:: html
DPIR method for PnP image deblurring.
.. raw:: html
.. only:: html .. image:: /auto_examples/plug-and-play/images/thumb/sphx_glr_demo_RED_GSPnP_SR_thumb.png :alt: :ref:`sphx_glr_auto_examples_plug-and-play_demo_RED_GSPnP_SR.py` .. raw:: html
Regularization by Denoising (RED) for Super-Resolution.
.. raw:: html
.. only:: html .. image:: /auto_examples/plug-and-play/images/thumb/sphx_glr_demo_PnP_custom_optim_thumb.png :alt: :ref:`sphx_glr_auto_examples_plug-and-play_demo_PnP_custom_optim.py` .. raw:: html
PnP with custom optimization algorithm (Condat-Vu Primal-Dual)
.. thumbnail-parent-div-close .. raw:: html
Sampling ------------------------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_demo_sampling_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_demo_sampling.py` .. raw:: html
Uncertainty quantification with PnP-ULA.
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_demo_ddrm_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_demo_ddrm.py` .. raw:: html
Image reconstruction with a diffusion model
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_demo_custom_kernel_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_demo_custom_kernel.py` .. raw:: html
Building your custom sampling algorithm.
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_demo_dps_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_demo_dps.py` .. raw:: html
Implementing DPS
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_demo_diffusion_sde_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_demo_diffusion_sde.py` .. raw:: html
Posterior Sampling for Inverse Problems with Stochastic Differential Equations modeling.
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_demo_diffpir_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_demo_diffpir.py` .. raw:: html
Implementing DiffPIR
.. thumbnail-parent-div-close .. raw:: html
Unfolded ------------------------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/unfolded/images/thumb/sphx_glr_demo_LISTA_thumb.png :alt: :ref:`sphx_glr_auto_examples_unfolded_demo_LISTA.py` .. raw:: html
Learned Iterative Soft-Thresholding Algorithm (LISTA) for compressed sensing
.. raw:: html
.. only:: html .. image:: /auto_examples/unfolded/images/thumb/sphx_glr_demo_vanilla_unfolded_thumb.png :alt: :ref:`sphx_glr_auto_examples_unfolded_demo_vanilla_unfolded.py` .. raw:: html
Vanilla Unfolded algorithm for super-resolution
.. raw:: html
.. only:: html .. image:: /auto_examples/unfolded/images/thumb/sphx_glr_demo_custom_prior_unfolded_thumb.png :alt: :ref:`sphx_glr_auto_examples_unfolded_demo_custom_prior_unfolded.py` .. raw:: html
Learned iterative custom prior
.. raw:: html
.. only:: html .. image:: /auto_examples/unfolded/images/thumb/sphx_glr_demo_DEQ_thumb.png :alt: :ref:`sphx_glr_auto_examples_unfolded_demo_DEQ.py` .. raw:: html
Deep Equilibrium (DEQ) algorithms for image deblurring
.. raw:: html
.. only:: html .. image:: /auto_examples/unfolded/images/thumb/sphx_glr_demo_learned_primal_dual_thumb.png :alt: :ref:`sphx_glr_auto_examples_unfolded_demo_learned_primal_dual.py` .. raw:: html
Learned Primal-Dual algorithm for CT scan.
.. raw:: html
.. only:: html .. image:: /auto_examples/unfolded/images/thumb/sphx_glr_demo_unfolded_constrained_LISTA_thumb.png :alt: :ref:`sphx_glr_auto_examples_unfolded_demo_unfolded_constrained_LISTA.py` .. raw:: html
Unfolded Chambolle-Pock for constrained image inpainting
.. thumbnail-parent-div-close .. raw:: html
Patch Priors ------------------------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/patch-priors/images/thumb/sphx_glr_demo_epll_thumb.png :alt: :ref:`sphx_glr_auto_examples_patch-priors_demo_epll.py` .. raw:: html
Expected Patch Log Likelihood (EPLL) for Denoising and Inpainting
.. raw:: html
.. only:: html .. image:: /auto_examples/patch-priors/images/thumb/sphx_glr_demo_patch_priors_CT_thumb.png :alt: :ref:`sphx_glr_auto_examples_patch-priors_demo_patch_priors_CT.py` .. raw:: html
Patch priors for limited-angle computed tomography
.. thumbnail-parent-div-close .. raw:: html
Self-Supervised Learning ------------------------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/self-supervised-learning/images/thumb/sphx_glr_demo_ei_transforms_thumb.png :alt: :ref:`sphx_glr_auto_examples_self-supervised-learning_demo_ei_transforms.py` .. raw:: html
Image transformations for Equivariant Imaging
.. raw:: html
.. only:: html .. image:: /auto_examples/self-supervised-learning/images/thumb/sphx_glr_demo_splitting_loss_thumb.png :alt: :ref:`sphx_glr_auto_examples_self-supervised-learning_demo_splitting_loss.py` .. raw:: html
Self-supervised learning with measurement splitting
.. raw:: html
.. only:: html .. image:: /auto_examples/self-supervised-learning/images/thumb/sphx_glr_demo_unsure_thumb.png :alt: :ref:`sphx_glr_auto_examples_self-supervised-learning_demo_unsure.py` .. raw:: html
Self-supervised denoising with the UNSURE loss.
.. raw:: html
.. only:: html .. image:: /auto_examples/self-supervised-learning/images/thumb/sphx_glr_demo_sure_denoising_thumb.png :alt: :ref:`sphx_glr_auto_examples_self-supervised-learning_demo_sure_denoising.py` .. raw:: html
Self-supervised denoising with the SURE loss.
.. raw:: html
.. only:: html .. image:: /auto_examples/self-supervised-learning/images/thumb/sphx_glr_demo_n2n_denoising_thumb.png :alt: :ref:`sphx_glr_auto_examples_self-supervised-learning_demo_n2n_denoising.py` .. raw:: html
Self-supervised denoising with the Neighbor2Neighbor loss.
.. raw:: html
.. only:: html .. image:: /auto_examples/self-supervised-learning/images/thumb/sphx_glr_demo_equivariant_imaging_thumb.png :alt: :ref:`sphx_glr_auto_examples_self-supervised-learning_demo_equivariant_imaging.py` .. raw:: html
Self-supervised learning with Equivariant Imaging for MRI.
.. raw:: html
.. only:: html .. image:: /auto_examples/self-supervised-learning/images/thumb/sphx_glr_demo_r2r_denoising_thumb.png :alt: :ref:`sphx_glr_auto_examples_self-supervised-learning_demo_r2r_denoising.py` .. raw:: html
Self-supervised denoising with the Generalized R2R loss.
.. raw:: html
.. only:: html .. image:: /auto_examples/self-supervised-learning/images/thumb/sphx_glr_demo_multioperator_imaging_thumb.png :alt: :ref:`sphx_glr_auto_examples_self-supervised-learning_demo_multioperator_imaging.py` .. raw:: html
Self-supervised learning from incomplete measurements of multiple operators.
.. raw:: html
.. only:: html .. image:: /auto_examples/self-supervised-learning/images/thumb/sphx_glr_demo_artifact2artifact_thumb.png :alt: :ref:`sphx_glr_auto_examples_self-supervised-learning_demo_artifact2artifact.py` .. raw:: html
Self-supervised MRI reconstruction with Artifact2Artifact
.. thumbnail-parent-div-close .. raw:: html
Adversarial Learning -------------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/adversarial-learning/images/thumb/sphx_glr_demo_gan_imaging_thumb.png :alt: :ref:`sphx_glr_auto_examples_adversarial-learning_demo_gan_imaging.py` .. raw:: html
Imaging inverse problems with adversarial networks
.. thumbnail-parent-div-close .. raw:: html
Advanced ------------------------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/advanced/images/thumb/sphx_glr_demo_ri_basic_thumb.png :alt: :ref:`sphx_glr_auto_examples_advanced_demo_ri_basic.py` .. raw:: html
Radio interferometric imaging with deepinverse
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /auto_examples/basics/index.rst /auto_examples/optimization/index.rst /auto_examples/plug-and-play/index.rst /auto_examples/sampling/index.rst /auto_examples/unfolded/index.rst /auto_examples/patch-priors/index.rst /auto_examples/self-supervised-learning/index.rst /auto_examples/adversarial-learning/index.rst /auto_examples/advanced/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: auto_examples_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_