Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
481-Rotation of output images in prostate_mri_anatomy - The transformations applied to the test data during preprocessing are not reversed during postprocessing. Thus, the resulting predictions have a different rotation compared to the original images and labels. I added an 'invertd()' function that reverses all the traceable transformations in the preprocessing. - Running the inference on a PC without a GPU leads to an error because the handlers function 'CheckpointLoader' attempts to load the model onto the GPU. I set the map_location argument to torch.device(device) so that it automatically loads the model onto the CPU when a GPU is not available. - Additionally, I changed some of the config directories as they were referring to the validation dataset rather than the test dataset. Signed-off-by: FaresAlMohamad <[email protected]>
- Loading branch information