Refactor normalization, evaluation, and preview generation for z-scored training#30
Merged
MattsonCam merged 9 commits intoJul 15, 2026
Merged
Conversation
wli51
approved these changes
Jul 14, 2026
wli51
left a comment
There was a problem hiding this comment.
LGTM! Great additions to the normalization and export module.
added 6 commits
July 14, 2026 17:57
Experiment ID:3 Run ID:763e5f09e64b455ba6981cfdf5fa60d7 Run Name:bittersweet-tern-183 Optimization of a DAPI-to-Gold image-to-image translation model with: - ConvNeXtUNet Generator - Single 2D crop input and single 2D crop target - Cache-backed filtered nucleus crops generated from the configured data directory - Train-split z-score normalization for inputs and targets - L1 optimization objective in z-score space with denormalized L2, PSNR, SSIM, and Pearson correlation metric logging - Resampling of dataset w/o anti-aliasing -> dtype clipping (to stay within the correct range) -> z-score normalization - Means and stds from the training set were stored for z-scoring of the validation set - No final activation function after the model output (such as sigmoid)
Experiment ID:3 Run ID:4feeef6283384834b907e9b1af611524 Run Name:aged-dove-229 Optimization of a DAPI-to-Gold image-to-image translation model with: - ConvNeXtUNet Generator - Single 2D crop input and single 2D crop target - Cache-backed filtered nucleus crops generated from the configured data directory - Train-split z-score normalization for inputs and targets - L1 optimization objective in z-score space with denormalized L2, PSNR, SSIM, and Pearson correlation metric logging - Resampling of dataset w/o anti-aliasing -> dtype clipping (to stay within the correct range) -> z-score normalization - Means and stds from the training set were stored for z-scoring of the validation set - No final activation function after the model output (such as sigmoid)
Member
Author
|
Thanks for the review @wli51 ! Merging now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pr switches the training pipeline to train-split z-score normalization, removes the output sigmoid so predictions stay aligned with z-scored targets during optimization, computes validation loss and reconstruction metrics in original intensity space, and improves saved example images by denormalizing and applying robust percentile-based display scaling.