-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from aecelaya/main
Refactor preprocessing to production-quality code.
- Loading branch information
Showing
7 changed files
with
1,145 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,12 @@ | ||
ARG FROM_IMAGE_NAME=nvcr.io/nvidia/pytorch:24.05-py3 | ||
FROM ${FROM_IMAGE_NAME} | ||
FROM pytorch/pytorch:2.4.0-cuda12.4-cudnn9-runtime | ||
|
||
# Set environment variables | ||
#ENV OMP_NUM_THREADS=2 | ||
#ENV OMPI_MCA_coll_hcoll_enable 0 | ||
#ENV HCOLL_ENABLE_MCAST 0 | ||
ENV DEBIAN_FRONTEND noninteractive | ||
# Set environment variables for non-interactive installation. | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install mist | ||
# Install MIST. | ||
RUN pip install --upgrade pip \ | ||
&& pip install --upgrade --no-cache-dir mist-medical | ||
|
||
# Install dependencies | ||
#RUN apt-get update -y --fix-missing \ | ||
# && apt-get install -y cmake git | ||
# | ||
## Install ANTs | ||
#RUN mkdir /opt/ants \ | ||
# && cd /opt/ants \ | ||
# && git clone https://github.com/ANTsX/ANTs.git \ | ||
# && cd /opt/ants/ANTs \ | ||
# && git checkout v2.5.0 \ | ||
# && cd /opt/ants \ | ||
# && mkdir build install \ | ||
# && cd /opt/ants/build \ | ||
# && cmake -DCMAKE_INSTALL_PREFIX=/opt/ants/install ../ANTs 2>&1 | tee cmake.log \ | ||
# && make -j 4 2>&1 | tee build.log \ | ||
# && cd /opt/ants/build/ANTS-build \ | ||
# && make install 2>&1 | tee install.log \ | ||
# | ||
## Install c3d | ||
#RUN mkdir /opt/c3d \ | ||
# && cd /opt/c3d/ \ | ||
# && wget https://downloads.sourceforge.net/project/c3d/c3d/Nightly/c3d-nightly-Linux-x86_64.tar.gz \ | ||
# && tar -xvf c3d-nightly-Linux-x86_64.tar.gz \ | ||
# && cp c3d-1.1.0-Linux-x86_64/bin/c3d /usr/local/bin/ \ | ||
|
||
# Create working directory | ||
#ENV PATH /opt/ants/install/bin:$PATH | ||
# Create app directory. | ||
RUN mkdir /app | ||
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.