Skip to content

Commit

Permalink
combine layers of download and chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarj committed Oct 29, 2022
1 parent 317b00d commit bb75b78
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions dockerfiles/tils.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ ENV WSIRUN_MODEL="inceptionv4"
ENV WSIRUN_WEIGHTS="TCGA-TILs-v1"

# Download the weights.
RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")"
# Downloaded models are mode 0600. Make them readable by all users.
RUN chmod -R +r $TORCH_HOME/hub/checkpoints/
RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" \
# Downloaded models are mode 0600. Make them readable by all users.
&& chmod -R +r $TORCH_HOME/hub/checkpoints/
6 changes: 3 additions & 3 deletions dockerfiles/tumor-brca.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ ENV WSIRUN_MODEL="resnet34"
ENV WSIRUN_WEIGHTS="TCGA-BRCA-v1"

# Download the weights.
RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")"
# Downloaded models are mode 0600. Make them readable by all users.
RUN chmod -R +r $TORCH_HOME/hub/checkpoints/
RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" \
# Downloaded models are mode 0600. Make them readable by all users.
&& chmod -R +r $TORCH_HOME/hub/checkpoints/
6 changes: 3 additions & 3 deletions dockerfiles/tumor-luad.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ ENV WSIRUN_MODEL="resnet34"
ENV WSIRUN_WEIGHTS="TCGA-LUAD-v1"

# Download the weights.
RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")"
# Downloaded models are mode 0600. Make them readable by all users.
RUN chmod -R +r $TORCH_HOME/hub/checkpoints/
RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" \
# Downloaded models are mode 0600. Make them readable by all users.
&& chmod -R +r $TORCH_HOME/hub/checkpoints/
6 changes: 3 additions & 3 deletions dockerfiles/tumor-paad.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ ENV WSIRUN_MODEL="resnet34_preact"
ENV WSIRUN_WEIGHTS="TCGA-PAAD-v1"

# Download the weights.
RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")"
# Downloaded models are mode 0600. Make them readable by all users.
RUN chmod -R +r $TORCH_HOME/hub/checkpoints/
RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" \
# Downloaded models are mode 0600. Make them readable by all users.
&& chmod -R +r $TORCH_HOME/hub/checkpoints/
6 changes: 3 additions & 3 deletions dockerfiles/tumor-prad.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ ENV WSIRUN_MODEL="resnet34"
ENV WSIRUN_WEIGHTS="TCGA-PRAD-v1"

# Download the weights.
RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")"
# Downloaded models are mode 0600. Make them readable by all users.
RUN chmod -R +r $TORCH_HOME/hub/checkpoints/
RUN python -c "from wsi_inference.modellib import models; models.$WSIRUN_MODEL(\"$WSIRUN_WEIGHTS\")" \
# Downloaded models are mode 0600. Make them readable by all users.
&& chmod -R +r $TORCH_HOME/hub/checkpoints/

0 comments on commit bb75b78

Please sign in to comment.