Skip to content

Commit

Permalink
use wsinfer version 0.3.3 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarj authored Jan 10, 2023
1 parent 25da8fe commit 1cc6f6a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dockerfiles/tils.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#
# Note about versioning: We should not use the 'latest' tag because it is a moving
# target. We should prefer using a versioned release of the wsinfer pipeline.
FROM kaczmarj/wsinfer:0.3.2
FROM kaczmarj/wsinfer:0.3.3

# The CLI will use these env vars for model and weights.
ENV WSINFER_MODEL="inceptionv4nobn"
ENV WSINFER_WEIGHTS="TCGA-TILs-v1"

# Download the weights.
RUN python -c "from wsinfer.modellib.models import get_model_weights; get_model_weights(architecture=\"$WSINFER_MODEL\", name=\"$WSINFER_WEIGHTS\").load_model()" \
RUN python -c "from wsinfer import get_model_weights; get_model_weights(architecture=\"$WSINFER_MODEL\", name=\"$WSINFER_WEIGHTS\").load_model()" \
# Downloaded models are mode 0600. Make them readable by all users.
&& chmod -R +r $TORCH_HOME/hub/checkpoints/
4 changes: 2 additions & 2 deletions dockerfiles/tumor-brca.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#
# Note about versioning: We should not use the 'latest' tag because it is a moving
# target. We should prefer using a versioned release of the wsinfer pipeline.
FROM kaczmarj/wsinfer:0.3.2
FROM kaczmarj/wsinfer:0.3.3

# The CLI will use these env vars for model and weights.
ENV WSINFER_MODEL="resnet34"
ENV WSINFER_WEIGHTS="TCGA-BRCA-v1"

# Download the weights.
RUN python -c "from wsinfer.modellib.models import get_model_weights; get_model_weights(architecture=\"$WSINFER_MODEL\", name=\"$WSINFER_WEIGHTS\").load_model()" \
RUN python -c "from wsinfer import get_model_weights; get_model_weights(architecture=\"$WSINFER_MODEL\", name=\"$WSINFER_WEIGHTS\").load_model()" \
# Downloaded models are mode 0600. Make them readable by all users.
&& chmod -R +r $TORCH_HOME/hub/checkpoints/
4 changes: 2 additions & 2 deletions dockerfiles/tumor-luad.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#
# Note about versioning: We should not use the 'latest' tag because it is a moving
# target. We should prefer using a versioned release of the wsinfer pipeline.
FROM kaczmarj/wsinfer:0.3.2
FROM kaczmarj/wsinfer:0.3.3

# The CLI will use these env vars for model and weights.
ENV WSINFER_MODEL="resnet34"
ENV WSINFER_WEIGHTS="TCGA-LUAD-v1"

# Download the weights.
RUN python -c "from wsinfer.modellib.models import get_model_weights; get_model_weights(architecture=\"$WSINFER_MODEL\", name=\"$WSINFER_WEIGHTS\").load_model()" \
RUN python -c "from wsinfer import get_model_weights; get_model_weights(architecture=\"$WSINFER_MODEL\", name=\"$WSINFER_WEIGHTS\").load_model()" \
# Downloaded models are mode 0600. Make them readable by all users.
&& chmod -R +r $TORCH_HOME/hub/checkpoints/
4 changes: 2 additions & 2 deletions dockerfiles/tumor-paad.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#
# Note about versioning: We should not use the 'latest' tag because it is a moving
# target. We should prefer using a versioned release of the wsinfer pipeline.
FROM kaczmarj/wsinfer:0.3.2
FROM kaczmarj/wsinfer:0.3.3

# The CLI will use these env vars for model and weights.
ENV WSINFER_MODEL="preactresnet34"
ENV WSINFER_WEIGHTS="TCGA-PAAD-v1"

# Download the weights.
RUN python -c "from wsinfer.modellib.models import get_model_weights; get_model_weights(architecture=\"$WSINFER_MODEL\", name=\"$WSINFER_WEIGHTS\").load_model()" \
RUN python -c "from wsinfer import get_model_weights; get_model_weights(architecture=\"$WSINFER_MODEL\", name=\"$WSINFER_WEIGHTS\").load_model()" \
# Downloaded models are mode 0600. Make them readable by all users.
&& chmod -R +r $TORCH_HOME/hub/checkpoints/
4 changes: 2 additions & 2 deletions dockerfiles/tumor-prad.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#
# Note about versioning: We should not use the 'latest' tag because it is a moving
# target. We should prefer using a versioned release of the wsinfer pipeline.
FROM kaczmarj/wsinfer:0.3.2
FROM kaczmarj/wsinfer:0.3.3

# The CLI will use these env vars for model and weights.
ENV WSINFER_MODEL="resnet34"
ENV WSINFER_WEIGHTS="TCGA-PRAD-v1"

# Download the weights.
RUN python -c "from wsinfer.modellib.models import get_model_weights; get_model_weights(architecture=\"$WSINFER_MODEL\", name=\"$WSINFER_WEIGHTS\").load_model()" \
RUN python -c "from wsinfer import get_model_weights; get_model_weights(architecture=\"$WSINFER_MODEL\", name=\"$WSINFER_WEIGHTS\").load_model()" \
# Downloaded models are mode 0600. Make them readable by all users.
&& chmod -R +r $TORCH_HOME/hub/checkpoints/

0 comments on commit 1cc6f6a

Please sign in to comment.