.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_image_restoration.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_image_restoration.py: Image Restoration: ProxTorch Logo via TV and TV-L1 Regularization ================================================================== Using ProxTorch's TV_2D and TVL1_2D operators, this example demonstrates image restoration of a noisy ProxTorch logo through TV and TV-L1 regularization. Dependencies: - torch, torch.nn, torch.optim - numpy - matplotlib - pytorch_lightning - proxtorch .. GENERATED FROM PYTHON SOURCE LINES 16-127 .. image-sg:: /auto_examples/images/sphx_glr_plot_image_restoration_001.png :alt: Original, Noisy, TV Restored, TV-L1 Restored :srcset: /auto_examples/images/sphx_glr_plot_image_restoration_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/proxtorch/envs/latest/lib/python3.11/site-packages/pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py:67: UserWarning: Starting from v1.9.0, `tensorboardX` has been removed as a dependency of the `pytorch_lightning` package, due to potential conflicts with other packages in the ML ecosystem. For this reason, `logger=True` will use `CSVLogger` as the default logger, unless the `tensorboard` or `tensorboardX` packages are found. Please `pip install lightning[extra]` or one of them to enable TensorBoard support by default warning_cache.warn( /home/docs/checkouts/readthedocs.org/user_builds/proxtorch/envs/latest/lib/python3.11/site-packages/pytorch_lightning/loops/fit_loop.py:281: PossibleUserWarning: The number of training batches (1) is smaller than the logging interval Trainer(log_every_n_steps=50). Set a lower value for log_every_n_steps if you want to see logs for the training epoch. rank_zero_warn( Training: 0it [00:00, ?it/s] Training: 0%| | 0/1 [00:00` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_image_restoration.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_