From 82dc45d8329f12e21f84182a698cff465a0584c9 Mon Sep 17 00:00:00 2001 From: Ravnoor Gill Date: Wed, 13 Sep 2023 10:16:42 -0400 Subject: [PATCH 1/4] bump conda to `py38` --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6ac9876..a009d26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,9 @@ RUN apt-get update && apt-get upgrade -y \ RUN mkdir /app WORKDIR /app -RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py37_23.1.0-1-Linux-x86_64.sh \ - && /bin/bash Miniconda3-py37_23.1.0-1-Linux-x86_64.sh -b -p /opt/conda \ - && rm Miniconda3-py37_23.1.0-1-Linux-x86_64.sh +RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py38_23.5.2-0-Linux-x86_64.sh \ + && /bin/bash Miniconda3-py38_23.5.2-0-Linux-x86_64.sh -b -p /opt/conda \ + && rm Miniconda3-py38_23.5.2-0-Linux-x86_64.sh ENV PATH=/opt/conda/bin:$PATH From 80882f12ef4ddf389829c28b2979ecf56c333f53 Mon Sep 17 00:00:00 2001 From: Ravnoor Gill Date: Wed, 13 Sep 2023 10:22:40 -0400 Subject: [PATCH 2/4] pin `tensorflow_probability` to `0.19.0` - dependency for `antspynet` - fix compatibility issues with `tensorflow` - `tensorflow` restricted to `2.12.x` --- app/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/requirements.txt b/app/requirements.txt index ca79cb8..7461e28 100644 --- a/app/requirements.txt +++ b/app/requirements.txt @@ -11,6 +11,7 @@ scikit-image==0.19.2 scikit-learn==1.0.2 scipy==1.7.3 setproctitle==1.2.3 +tensorflow_probability==0.19.0 torchsummary==1.5.1 torch==1.8.2 torchvision==0.9.2 \ No newline at end of file From b339d3d4c3e281180688aa5a5098b29e5ca82677 Mon Sep 17 00:00:00 2001 From: Ravnoor Gill Date: Wed, 13 Sep 2023 13:40:42 -0400 Subject: [PATCH 3/4] update README --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5ee67fa..b82a7a7 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@

- + - + @@ -41,11 +41,11 @@ Milletari, F., Navab, N., & Ahmadi, S. A. (2016, October). [V-net: Fully convolu ``` ## Pre-requisites -###TODO: Update version requirements ```console -1. Python >= 3.5 -2. Pytorch >= 1.0.0 -3. Nibabel >= 1.14.0 +1. Python >= 3.7 +2. PyTorch (LTS) <= 1.8.2 +3. ANTsPy +4. ANTsPyNet ``` ## Installation From 66c864cb629b7c66e6c11092ec89bdf37adf2124 Mon Sep 17 00:00:00 2001 From: Ravnoor Gill Date: Wed, 13 Sep 2023 14:45:35 -0400 Subject: [PATCH 4/4] upgrade base image to Ubuntu 20.04 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a009d26..d578f70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 as builder +FROM ubuntu:20.04 as builder LABEL maintainer="Ravnoor Singh Gill " RUN apt-get update && apt-get upgrade -y \ @@ -28,7 +28,7 @@ RUN pip install -r /app/requirements.txt # production image -FROM ubuntu:18.04 +FROM ubuntu:20.04 ENV TZ=America/Montreal