SSIM loss for standardized data #6861
RohanKPatil
started this conversation in
Idea pool
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is usually a practice to standardize the data for deeper models for training stability and faster convergence. Its difficult to compute the SSIM score for standardized data, especially in case of medical datasets - since we standardize each slice/sample with respect to the entire volume from which that slice/sample came (mean and std of the volume is used). I have a modified dataloader which can give the images for each batch along with the metadata, which contains the mean and std of the original volume for the corresponding sample, which can be used to denormalize the data and then compute the SSIM score. Is there any cleaner way to do this, given we get the metadata for each sample of the batch in the training_step function?
This way is definitely not recommended, since we are changing tensors. Is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions