Totalsegmentator failing with error 120

Aha! So, it is not a too old package, but a too recent package.

Unfortunately, developer of dynamic_network_architectures broke backward compatibility with a recent update. ResidualEncoderUNet package must be imported as from dynamic_network_architectures.architectures.residual_unet import ResidualEncoderUNet now, but since this change was snuck into a minor version update (0.2 to 0.4) developer of TotalSegmentator did not suspect anything bad would happen.

As a workaround, you can downgrade dynamic_network_architectures package by running this command in the Python console (that I’ll also add to the TotalSegmentator Slicer module):

pip_install('dynamic_network_architectures==0.2.0')

I’ve filed a bug report to TotalSegmentator to make sure the incompatibility is fixed properly:

3 Likes