You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey all,
I noticed that global torch settings are changed when totalsegmentator.python_api.totalsegmentator is called.
They are not restored once the function finishes and can lead to significant performance degradation of follow-up torch functions.
This is happening somewhere in the nnunet package. I will investigate that but might take some time. A fast solution would be to call TotalSegmentator from within python as a shell command via subprocess.call. Not very elegant but works.
Hey all,
I noticed that global torch settings are changed when totalsegmentator.python_api.totalsegmentator is called.
They are not restored once the function finishes and can lead to significant performance degradation of follow-up torch functions.
I observed the following settings being changed:
Please make sure that totalsegmentator has no such side effects and either restores the global state or is isolated in it's own process.
The text was updated successfully, but these errors were encountered: