Upgrade: Ubuntu, Python, torch, Freesurfer, and other dependencies
#348
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.
Description
This PR upgrades the FastSurfer environment with the latest dependency versions (as permitted by compatiblities and pip/conda requirements). The main targets were newer Ubuntu (
22.04), Python (3.10), Pytorch (2.0.0+), and Freesurfer (7.4.1) versions; all other packages were upgraded accordingly.The versions have been updated in the pip
requirements.txt/requirements_cpu.txt(andrequirements.in) files and the conda files:fastsurfer_env_gpu.yml,fastsurfer_env_cpu.yml, andfastsurfer_reconsurf.yml. The Dockerfiles (except forDockerfile_FastSurferCNN_AMD) were also updated.In initial tests on a 1mm case (using all Dockerfiles), FastSurfer builds and runs through successfully.
Note:
3.10instead of3.11because i)3.10is native in Ubuntu22.04and ii) Pytorch2.0.0does not yet support3.11, particularly for conda-based installs (see here).torchandtorchvisionare now installed through pip, since conda can not create a valid environment with the latest versions (process never terminates).PYTHON_VERSIONarguments in the Dockerfiles were removed, as they seem to be unused.mris_infostring comparison to number of spaces (for FS741) #341.Update: Full validation tests (DSC, test-retest, and group analyses) show minor differences after the upgrade.
Version List
The following is a list of the upgraded packages:
Ubuntu:20.04-->22.04Python:3.8-->3.10Miniconda:py38_4.11.0-->py310_23.3.1Freesurfer:7.3.2-->7.4.1lapy:0.4.1-->1.0.1matplotlib:3.5.1-->3.7.1nibabel:3.2.2-->5.1.0numpy:1.23.5-->1.25.0pandas:1.4.3-->1.5.3pillow:9.2.0-->9.5.0pip:21.2.4-->23.1.2scikit-image:0.19.2-->0.19.3scikit-learn:1.1.2-->1.2.2scipy:1.8.0-->1.10.1setuptools:59.5.0-->67.8.0simpleitk:2.1.1-->2.2.1tensorboard:2.9.1-->2.12.1torch:1.12.0-->2.0.1(CUDA:11.3-->11.7)torchvision:0.13.0-->0.15.2(CUDA:11.3-->11.7)tqdm:4.64-->4.65.0TODOs