ptyrad.reconstruction#
Reconstruction and hypertune workflows for ptychographic reconstructions
Classes
|
The Dataset class used specifically for the multiGPU mode for DDP |
|
A wrapper class to perform ptychographic reconstruction or hyperparameter tuning. |
Functions
|
Compute the model output and loss, with optional support for accelerate's autocast. |
|
Helper function to compute the current error for Optuna |
|
|
|
|
|
|
|
|
|
Logs and summarizes the loss values for an iteration during the ptychographic reconstruction. |
|
Make batches from input indices |
|
Objective function for Optuna hyperparameter tuning in ptychographic reconstruction. |
|
Convert user-facing CompilerConfigs to dict suitable for torch.compile |
|
Prepares the indices, batches, and output path for ptychographic reconstruction. |
|
Executes the iterative optimization loop for ptychographic reconstruction. |
|
Performs one iteration (or step) of the ptychographic reconstruction in the optimization loop. |
|
|
|
Toggle requires_grad based on start and end iteration for each optimizable tensor. |