From ec80bbce203073391f6405733bf223fec018a133 Mon Sep 17 00:00:00 2001 From: Kenneth Tu Date: Sun, 6 Nov 2022 14:26:27 +0800 Subject: [PATCH] update windows test --- download.sh | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/download.sh b/download.sh index 9aec967..da82540 100755 --- a/download.sh +++ b/download.sh @@ -35,5 +35,68 @@ pip install transforms3d pip install networkx pip install opencv-python pip install pyqt5 +pip install scipy==1.9.2 +pip install pyyaml==6.0 +file1=checkpoints/color-model.pth +minimumsize1=90000 +actualsize1=$(wc -c <"$file1") +if [ $actualsize1 -ge $minimumsize1 ]; then + echo $file1 ok +else + echo $file1 size is under $minimumsize1 bytes + exit +fi + +file2=checkpoints/depth-model.pth +minimumsize2=90000 +actualsize2=$(wc -c <"$file2") +if [ $actualsize2 -ge $minimumsize2 ]; then + echo $file2 ok +else + echo $file2 size is under $minimumsize2 bytes + exit +fi + +file3=checkpoints/edge-model.pth +minimumsize3=90000 +actualsize3=$(wc -c <"$file3") +if [ $actualsize3 -ge $minimumsize3 ]; then + echo $file3 ok +else + echo $file3 size is under $minimumsize3 bytes + exit +fi + +file4=MiDaS/model.pt +minimumsize4=90000 +actualsize4=$(wc -c <"$file4") +if [ $actualsize4 -ge $minimumsize4 ]; then + echo $file4 ok +else + echo $file4 size is under $minimumsize4 bytes + exit +fi + +file5=BoostingMonocularDepth/pix2pix/checkpoints/mergemodel/latest_net_G.pth +minimumsize5=90000 +actualsize5=$(wc -c <"$file5") +if [ $actualsize5 -ge $minimumsize5 ]; then + echo $file5 ok +else + echo $file5 size is under $minimumsize5 bytes + exit +fi + +file6=BoostingMonocularDepth/midas/model.pt +minimumsize6=90000 +actualsize6=$(wc -c <"$file6") +if [ $actualsize6 -ge $minimumsize6 ]; then + echo $file6 ok +else + echo $file6 size is under $minimumsize6 bytes + exit +fi + +# Can only run this if no error after above setup. python main.py --config argument.yml