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

BUG: --allow_root does not work for segstats module in hypvinn. #562

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

dkuegler
Copy link
Member

@dkuegler dkuegler commented Aug 26, 2024

Because allow_root is hard coded to False in hypvinn/utils/stats_utils.py, computing stats for hypvinn crashes Fastsurfer when running as root despite passing the flag --allow_root.

This PR changes allow_root (hard coded) to True, which is suboptimal, but fine. This always satisfies the check in segstats (for hypvinn). But this check is also performed in hypvinn/run_prediction.py (so the check in segstats is redundant anyways).

Because allow_root is always set to False, root is not compatible with computing stats for hypvinn.
This changes root to True, which is suboptimal, but fine. This is only a check in segstats and it is also already checked in run_prediction before (so this is redundant).
@m-reuter m-reuter merged commit 80f4e2a into Deep-MI:dev Aug 27, 2024
2 checks passed
@dkuegler dkuegler deleted the fix/allowroot-in-hypvinn-stats branch August 27, 2024 08:26
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.

2 participants