Skip to content

Conversation

@MattsonCam
Copy link
Member

This pr refactors the segmentation framework, updated the uv environment to accommodate the RTX 5090 GPU, and added 3D visualization capabilities. This pr also changes the training to accept three z-slices as input to the model, and output the middle segmentation mask. In future pr(s), I will update the framework to perform semantic segmentation and visualize those segmentations.

MattsonCam and others added 16 commits October 14, 2025 17:21
and changed the model to accept an input
of three slices and output a one-slice segmentation
- Pass in the dataset at initialization
- Ensure the tiff image suffix contains two "f"s
- Seperate the cropped images from others
- Moved the functionality for saving image to mlflow to a seperate util
- Added an option to save images locally
- Passing in shapes instead of single dimensions.
- Added all-slice dataset for and saving utility for saving all-slices of inputs, targets, and generated predictions
- Included the ability to process the dataset that outputs all slices including:
    * Selection of all-slice indices using dataset indices from the crop training dataset
    * Saving images to mlflow or to a specified location
- Seperated out the functionality for retrieving whole-image metadata across all slices
versions of pytorch and cuda for the RTX 5090 GPU
- Decreased the whole image saver stride
- Added the whole image saver
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@MikeLippincott MikeLippincott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think a little more work might be needed in documentation external of the code to explain the whole process, training approach, etc.

@MattsonCam
Copy link
Member Author

I'm going to wait until we understand the napari/nViz visualization problem better before I merge this pr. Just in case I need to change my code

visuzlized in napari using nviz
@MattsonCam
Copy link
Member Author

MattsonCam commented Oct 29, 2025

I'm going to wait until we understand the napari/nViz visualization problem better before I merge this pr. Just in case I need to change my code

After some discussion, I think this problem has be resolved enough to merge the pr, so I am merging it now. Thanks for the review @MikeLippincott!

@MattsonCam MattsonCam merged commit 70c1011 into main Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants