ptyrad.losses

ptyrad.losses#

Loss functions and soft regularizations calculated using forward simulations against experimental measurements

Classes

CombinedLoss(loss_params[, device])

Computes the combined loss for ptychographic reconstruction, incorporating multiple loss components.

Functions

get_objp_contrast(model, indices)

Calculate the contrast from objp zsum imgage for Hypertune purpose