Skip to content
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

Optimization for long_fastsurfer, one view only for skull stripping #659

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

dkuegler
Copy link
Member

This PR optimizes fastsurfer so that the skull stripping needed for longitudinal registration only uses one fastsurfer view.

Currently, run_prediction cannot be configured to only run on one view. But if it could, long_prepare_template would likely only need one view to compute the brainmask. Maybe we can even deactivate aseg and asegdkt output to save up time and disk space. This would then speed up this initial step.

Step 1: Modify run_prediction so the user is able to "deselect" views that should not be included. Syntax (example) --cfg_ax none

Step 2 (optional) Modify run_predicrion so the user is able to "deselect" certain outputs. Syntax: no --aseg_name means no aseg, unsure about --asegdkt_segfile maybe none.

Step 3: Test how reliable different view predict the brainmask.

Step 4: implement the best view for long_prepare_template.sh.

Step 5: Test impact on longitudinal pipeline.

@dkuegler dkuegler self-assigned this Feb 12, 2025
@dkuegler dkuegler added the enhancement New feature or request label Feb 12, 2025
@dkuegler
Copy link
Member Author

Step 1 accomplished

@dkuegler dkuegler force-pushed the feature/long-only-one-view branch from 852fdb4 to da32765 Compare February 17, 2025 11:05
…nclude.

- parser_defaults.py: Allow empty or none for --cfg_ax, --cfg_sag, --cfg_cor.
- run_prediction.py: If cgf_ax/sag/cor is none/empty, do not use that view
- some formatting cleanup
@dkuegler dkuegler force-pushed the feature/long-only-one-view branch from da32765 to bbcf003 Compare March 10, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant