deepinv.utils#
This module provides various plotting and utility functions. Please refer to the user guide for more information.
Plotting#
User Guide: refer to Plotting for more information.
Plots a list of images. |
|
Plots the metrics of a Plug-and-Play algorithm. |
|
Plot the parameters of the model before and after training. |
|
Plots a list of images with zoomed-in insets extracted from the images. |
|
Plots and animates a list of image sequences. |
|
Saves an animation of a list of image sequences. |
|
Plots an orthogonal view of 3D images. |
|
Globally disable LaTeX |
|
Globally enable LaTeX |
|
Normalize a batch of signals between zero and one. |
|
Config matplotlib for nice plots in the examples. |
TensorList#
User Guide: refer to TensorList for more information.
Represents a list of |
Returns a |
|
Returns a |
|
Returns a |
|
Returns a |
Logging#
User Guide: refer to Logging for more information.
Compute and store aggregates online from a stream of scalar values |
|
Get current timestamp string. |
Mixins#
User Guide: refer to Mixins for more information.
Mixin base class for MRI functionality. |
|
Base class for temporal capabilities for physics and models. |
Image Loading#
User Guide: refer to Image Loading for more information.
Load image from DICOM file. |
|
Load volume from nifti file as torch tensor. |
|
Load URL to a buffer. |
|
Load numpy array from file as torch tensor. |
|
Load torch tensor from file. |
|
Load MATLAB array from file. |
|
Load a raster image and return patches as tensors using |
|
Load complex MRI data from ISMRMD format. |
Demo Utils#
User Guide: refer to Demo Utils for more information.
Load an image from a file and return a torch.Tensor. |
|
Load an image from a URL and return a torch.Tensor. |
|
Load a numpy array from url and convert to tensor. |
|
Load an array from url and read it by torch.load. |
|
Load example image from the DeepInverse HuggingFace using |
|
Return a folder to store deepinv datasets. |
|
Get URL for image from DeepInverse HuggingFace repository. |
|
Get URL for degradation from DeepInverse HuggingFace repository. |
|
Loads an ImageFolder dataset from DeepInverse HuggingFace repository. |
|
Loads a degradation tensor from DeepInverse HuggingFace repository. |
Other#
User Guide: refer to Other for more information.
Returns the GPU device with the most free memory. |
|
Returns a |