feat(cytoland): non-square rotation TTA + reuse helpers#465
Merged
Conversation
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> (cherry picked from commit 674dbee)
ieivanov
approved these changes
Jun 10, 2026
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.
Ports the changes from #450 onto
main.#450 was accidentally squash-merged into
modular-viscy-staging(commit674dbeef) instead ofmain. Because themodular-viscy-staging → mainintegration (#373) had already merged on 2026-06-04 — six days before #450 — the change never reachedmainand won't arrive via any future staging merge (staging is now retired). This PR cherry-picks the squashed commit ontomain(clean, zero conflicts — the five touched files were byte-identical between the two branches).Original change (unchanged):
AugmentedPredictionVSUNet._predict_with_ttato crop to the augmented (post-transform) spatial shape, so shape-changing transforms (90/270° rotations that swap Y/X) work on non-square FOVs.rotation_tta_transforms()factory andAugmentedPredictionVSUNet.with_rotation_tta()convenience constructor._read_norm_metacanonical inviscy_data._utilsand export public aliasread_norm_meta.Supersedes #450 for the
mainline. The copy onmodular-viscy-stagingis left as-is (branch retired).🤖 Generated with Claude Code