Created
July 2, 2020 06:57
-
-
Save kojix2/ace398c0799d0b4a5decea58179b9a13 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FROM tensorflow/tensorflow:1.15.2-py3 | |
LABEL maintainer="kojix2 <[email protected]>" | |
RUN set -x && \ | |
apt update -y && \ | |
apt install -y wget unzip libsm6 libxrender1 libxext-dev && \ | |
pip3 install --upgrade pip && \ | |
pip3 install scikit-learn && \ | |
pip3 install matplotlib && \ | |
pip3 install opencv-python | |
RUN wget https://github.com/lindawangg/COVID-Net/archive/master.zip | |
RUN unzip master.zip | |
CMD echo "now running" |
Download automatically
FROM tensorflow/tensorflow:1.15.2-py3
LABEL maintainer="kojix2 <[email protected]>"
RUN set -x && \
apt update -y && \
apt install -y wget unzip libsm6 libxrender1 libxext-dev && \
pip3 install --upgrade pip && \
pip3 install scikit-learn && \
pip3 install matplotlib && \
pip3 install opencv-python && \
pip3 install gdown
RUN wget https://github.com/lindawangg/COVID-Net/archive/master.zip
RUN unzip master.zip
# Download COVIDNet-CXR4-A
WORKDIR /COVID-Net-master/models/COVIDNet-CXR4-A
RUN gdown https://drive.google.com/uc?id=1dCU5NV_-DKMKPUIJxO2MFU603LFkx5bd
RUN gdown https://drive.google.com/uc?id=1cQ6Z3esdyTDuZJqc8lu8tL0sJ6GZCosI
RUN gdown https://drive.google.com/uc?id=1-GW2qlGYcpNLgjy-q_f2XNYSlMzAbC8F
RUN gdown https://drive.google.com/uc?id=1zGS8sA4HB6cnWfRlL8g18QJi_4tq6hNF
# Download COVIDNet-SEV-GEO
WORKDIR /COVID-Net-master/models/COVIDNet-SEV-GEO
RUN gdown https://drive.google.com/uc?id=1vmr5gADYVokAYz-6kGQ-INb_r0weoWWD
RUN gdown https://drive.google.com/uc?id=18zSwSRybX2Zy5jm0E4alBuGGvHAuuvXd
RUN gdown https://drive.google.com/uc?id=10aL3s_TLRSCxZ0E2OUIjy9rLa-fTOtUj
RUN gdown https://drive.google.com/uc?id=1Sbp4NetlGzEM0VwxkZ1Lq-0fjprdjdCR
# Download COVIDNet-SEV-OPC
WORKDIR /COVID-Net-master/models/COVIDNet-SEV-OPC
RUN gdown https://drive.google.com/uc?id=11Ju0YeIitzS2GgXJ4U5J3M87tF683-sM
RUN gdown https://drive.google.com/uc?id=1m0dXmUueCx4v9PbZhanmbt0ECe63tMKA
RUN gdown https://drive.google.com/uc?id=1oaILEyuMcHWQS68l4hrMPyWgosnqfAu0
RUN gdown https://drive.google.com/uc?id=1m5eJwhuFccZwyGl8T4DRfq8x3rgkqCEC
WORKDIR /COVID-Net-master
CMD echo "now running"
python inference.py --weightspath models/COVIDNet-CXR4-A \
--metaname model.meta \
--ckptname model-18540 \
--imagepath assets/ex-covid.jpeg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docker run
Then, you will see the message below.
Change your current directory.
Inference
Severity