-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update nightly #136
Open
anthonyprinaldi
wants to merge
213
commits into
nightly
Choose a base branch
from
dev
base: nightly
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update nightly #136
Conversation
This file contains 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
Member
anthonyprinaldi
commented
Jul 3, 2024
- Merge all recent changes from dev (ACE related) into nightly release
- This is in preparation for testing the new Python version in the nightly branch
This fix makes sure that the right atlas is selected by the registration script, instead of the workflow. This is needed for when using half brain registration.
Add registration overwrite ability to single workflow.
Clear reg_final/ and clar_allen_reg/ when user choses to rerun registration
Add parser flag to skip segmentation when the segmentation has already been run.
Seg skipping was only added to comparison workflow and not single workflow.
In Tiff to Nifti allow the user to specify a value of percentile to correct extreme artifacts in the image. Default no correction.
Let ACE use the percentil correction in Tiff to Nifti conversion to crop extreme intensities.
This was the problem with the registration function. We also no longer need to perform the percentile correction.
If labels are specified, use the user specified argument. Otherwise, come up with the labels based on other arguments.
sw_batch_size is hard coded to 4. batch_size is now taken from user input.
This allows us to specify the number of MC iterations instead of hard coding the value.
Need to move results to CPU before doing numpy stackin. Otherwise results in an error
New parser argument to select number of GPU to be used.
Deal with outputs when batch size is greater than 1.
Ensure that the variable of the outside loop doesn't conflict with the list comprehension
Need to keep original values of val_outputs for future loop iterations.
Statements originally included for debugging no longer needed.
Add flag for forcing rerun conversion. By default conversion will be skipped if it already completed and the right downsample arg is used.
The stacked patches are only beign zero padded in the height and width dimension right now. We need to pad the depth dimension so that all patches loaded to the model are the same size.
The warp script does not have ability to specify custom allen labels (in the case of half-brain registratin). Add the flag that overwrite the default allen atlas labels.
The output of MC ace models were being saved with additional uncertaintiy information. To handle this, we need to filter the output seg folder for specific files. These files re named different for regular vs MC ace models.
Sometimes a None string is passed through the CLI that we must check for, otherwise the script will try and load the path None. We check if the label path is not empty and not None
Ace heatmap used to be for whole brain only. This commit adds logic to load in half brain atlas labels if half brain is passed to the ACE workflow. This also adds a flag for heatmap that masks out voxels that our outside of the brain, as determined by the atlas.
The model output by default will determine if a voxel is a neuron with 0.5 threshold. We now add an argument so we can change this threshold to be whatever we want.
Previously, creating output storage arrays based on the assumed patch size of 512^3. We now take the patch size from the input so that it can work with any patch size.
Function will plot the p-values from ACE clusterwise analysis and overlay it onto a brain template from the atlas.
ACE flow will now plot a p-value overlaid on an atalas after clusterwise analysis is complete.
Add validate clusters and instance segmentation output to ace workflow
Second Round of ACE Fixes.
Add ACE Finetuning Script
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.