feat: Add 2D data processing support with do_2d flag#162
Merged
donglaiw merged 1 commit intoPytorchConnectomics:masterfrom Oct 29, 2025
Merged
feat: Add 2D data processing support with do_2d flag#162donglaiw merged 1 commit intoPytorchConnectomics:masterfrom
donglaiw merged 1 commit intoPytorchConnectomics:masterfrom
Conversation
- Add do_2d parameter to DataConfig and InferenceDataConfig - Modify MonaiConnectomicsDataset to handle 2D dimensions when do_2d=True - Update model wrapper to squeeze/unsqueeze depth dimension for 2D models - Disable sliding window inference for 2D models, use direct inference - Make TTA flip axes dynamic based on data dimensions (2D vs 3D) - Switch evaluation metric from Jaccard to Adapted Rand Error for instance segmentation - Update monai2d_worm.yaml config to enable 2D processing This enables seamless 2D data processing while maintaining 3D compatibility.
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 enables seamless 2D data processing while maintaining 3D compatibility.