Skip to content

Commit

Permalink
hotfix checkpoint download in docker
Browse files Browse the repository at this point in the history
Merge pull request #326 from Deep-MI/hotfix/Dockerfiles_segonly_ckpt_download
Added CerebNet, removed copying empty dir and corrected ckpt downloaddir
  • Loading branch information
m-reuter authored Jun 2, 2023
2 parents c951b24 + d073482 commit 834b4df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Docker/Dockerfile_FastSurferCNN
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ SHELL ["/bin/bash", "--login", "-c"]
# Copy venv and FastSurferCNN
COPY --from=build /venv /venv
COPY ./FastSurferCNN /fastsurfer/FastSurferCNN/
COPY ./checkpoints /fastsurfer/FastSurferCNN/checkpoints/
COPY ./CerebNet /fastsurfer/CerebNet
COPY ./Docker/entrypoint.sh /fastsurfer/Docker/entrypoint.sh

# Download all remote network checkpoints already
ENV PYTHONPATH=/fastsurfer:$PYTHONPATH \
MPLCONFIGDIR=/tmp
RUN python3 /fastsurfer/FastSurferCNN/download_checkpoints.py --all; chmod +r -R /fastsurfer/FastSurferCNN/checkpoints
RUN python3 /fastsurfer/FastSurferCNN/download_checkpoints.py --all

# Set FastSurfer workdir and entrypoint
# the script entrypoint ensures that our conda env is active
Expand Down
9 changes: 5 additions & 4 deletions Docker/Dockerfile_FastSurferCNN_AMD
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ RUN pip3 install \


# Copy FastSurferCNN
COPY ./FastSurferCNN /FastSurferCNN/
COPY ./FastSurferCNN /fastsurfer/FastSurferCNN/
COPY ./CerebNet /fastsurfer/CerebNet

# Download all remote network checkpoints already
RUN cd /FastSurferCNN/ ; python3 download_checkpoints.py --all --vinn
RUN python3 /fastsurfer/FastSurferCNN/download_checkpoints.py --all

# Set FastSurferCNN workdir and entrypoint
# the script entrypoint ensures that our conda env is active
WORKDIR "/FastSurferCNN"
ENTRYPOINT ["python3.7", "run_prediction.py"]
WORKDIR "/fastsurfer"
ENTRYPOINT ["python3.7", "./FastSurferCNN/run_prediction.py"]
CMD ["--help"]
4 changes: 2 additions & 2 deletions Docker/Dockerfile_FastSurferCNN_CPU
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ SHELL ["/bin/bash", "--login", "-c"]
# Copy venv and FastSurferCNN
COPY --from=build /venv /venv
COPY ./FastSurferCNN /fastsurfer/FastSurferCNN/
COPY ./checkpoints /fastsurfer/FastSurferCNN/checkpoints/
COPY ./CerebNet /fastsurfer/CerebNet
COPY ./Docker/entrypoint.sh /fastsurfer/Docker/entrypoint.sh

# Download all remote network checkpoints already
ENV PYTHONPATH=/fastsurfer:$PYTHONPATH \
MPLCONFIGDIR=/tmp
RUN python3 /fastsurfer/FastSurferCNN/download_checkpoints.py --all; chmod +r -R /fastsurfer/FastSurferCNN/checkpoints
RUN python3 /fastsurfer/FastSurferCNN/download_checkpoints.py --all

# Set FastSurfer workdir and entrypoint
# the script entrypoint ensures that our conda env is active
Expand Down

0 comments on commit 834b4df

Please sign in to comment.