Skip to content

Commit d9569ad

Browse files
committed
updated build
1 parent 7aed4b3 commit d9569ad

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

build/Dockerfile

+4-8
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,10 @@ RUN wget https://github.com/computationalpathologygroup/pythostitcher/archive/re
219219
tar xf ${PYTHOSTITCHER_VERSION}.tar.gz
220220

221221
# === Download JigsawNet model weights in PythoStitcher directory ===
222-
# The weights will be downloaded from my Google Drive since they were modified to fit PythoStitcher.
223-
# The original JigsawNet weights (https://github.com/Lecanyu/JigsawNet) will NOT work.
224-
ENV FILE_ID 1jmee9j5dKemu62MNl7UwXx8_0QrXYwJU
225-
RUN wget --save-cookies cookies.txt 'https://drive.google.com/uc?export=download&id='$FILE_ID -O- \
226-
| sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1/p' > confirm.txt
227-
RUN wget --load-cookies cookies.txt -O JigsawCNN_checkpoint.zip \
228-
'https://drive.google.com/uc?export=download&id='$FILE_ID'&confirm='$(<confirm.txt)
229-
RUN unzip /home/user/JigsawCNN_checkpoint.zip -d /home/user/pythostitcher-${PYTHOSTITCHER_VERSION}/model_weights/
222+
# Download JigsawNet weights from Google Drive
223+
RUN pip3 install gdown
224+
RUN gdown --id 1_LALxlkyJ-X_EKr-ralYbPwtbPb1gM-E -O JigsawCNN_checkpoint.zip && \
225+
unzip /home/user/JigsawCNN_checkpoint.zip -d /home/user/pythostitcher-${PYTHOSTITCHER_VERSION}/model_weights/
230226

231227
# === Configure stop signal. ===
232228
STOPSIGNAL SIGINT

build/install_files/requirements.txt

+1-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ beautifulsoup4==4.11.1
5252
# via nbconvert
5353
binaryornot==0.4.4
5454
# via cookiecutter
55-
bleach==5.0.0
55+
bleach
5656
# via nbconvert
5757
boto3==1.23.3
5858
# via neptune-client
@@ -623,10 +623,6 @@ pyasn1-modules==0.2.8
623623
# via
624624
# google-auth
625625
# oauth2client
626-
pycocotools==2.0.4
627-
# via
628-
# object-detection
629-
# tf-models-official
630626
pycparser==2.21
631627
# via cffi
632628
pydantic==1.9.1

0 commit comments

Comments
 (0)