Skip to content

Commit 6473160

Browse files
authored
Merge pull request #240 from PINTO0309/gdrivefix
Support for Google Drive specification changes
2 parents 3cbc992 + af5c573 commit 6473160

16 files changed

Lines changed: 48 additions & 48 deletions

File tree

036_Objectron/download.sh

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1Za9UcPy2uFjZd6gKGEOEmAfaS0vkfCOq" > /dev/null
4-
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
5-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1Za9UcPy2uFjZd6gKGEOEmAfaS0vkfCOq" -o resources.tar.gz
3+
fileid="1Za9UcPy2uFjZd6gKGEOEmAfaS0vkfCOq"
4+
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
5+
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz
66
tar -zxvf resources.tar.gz
77
rm resources.tar.gz
88

037_First_Neural_Style_Transfer/01_float32/download.sh

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=16gyavBMe6ug_2ATJXz5j2iKVda7ySxco" > /dev/null
4-
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
5-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=16gyavBMe6ug_2ATJXz5j2iKVda7ySxco" -o resources.tar.gz
3+
fileid="16gyavBMe6ug_2ATJXz5j2iKVda7ySxco"
4+
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
5+
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz
66
tar -zxvf resources.tar.gz
77
rm resources.tar.gz
88

037_First_Neural_Style_Transfer/02_weight_quantization/download.sh

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1bcPhrn4qDH0exoAmKLtRVx-c_K51gMGJ" > /dev/null
4-
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
5-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1bcPhrn4qDH0exoAmKLtRVx-c_K51gMGJ" -o resources.tar.gz
3+
fileid="1bcPhrn4qDH0exoAmKLtRVx-c_K51gMGJ"
4+
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
5+
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz
66
tar -zxvf resources.tar.gz
77
rm resources.tar.gz
88

038_ssdlite_mobiledet_edgetpu/01_float32/download.sh

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1lKl163chev1QPeJMCnMlrYVblWQdGxoh" > /dev/null
4-
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
5-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1lKl163chev1QPeJMCnMlrYVblWQdGxoh" -o resources.tar.gz
3+
fileid="1lKl163chev1QPeJMCnMlrYVblWQdGxoh"
4+
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
5+
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz
66
tar -zxvf resources.tar.gz
77
rm resources.tar.gz
88

038_ssdlite_mobiledet_edgetpu/02_weight_quantization/download.sh

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1r-71Uon9Ka_bA7uYeqDv-un6wZ0I3WDD" > /dev/null
4-
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
5-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1r-71Uon9Ka_bA7uYeqDv-un6wZ0I3WDD" -o resources.tar.gz
3+
fileid="1r-71Uon9Ka_bA7uYeqDv-un6wZ0I3WDD"
4+
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
5+
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz
66
tar -zxvf resources.tar.gz
77
rm resources.tar.gz
88

038_ssdlite_mobiledet_edgetpu/03_integer_quantization/download.sh

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1BaUiB-yaxu8Xm8_QgoZ_eKhj96iRUwRc" > /dev/null
4-
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
5-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1BaUiB-yaxu8Xm8_QgoZ_eKhj96iRUwRc" -o resources.tar.gz
3+
fileid="1BaUiB-yaxu8Xm8_QgoZ_eKhj96iRUwRc"
4+
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
5+
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz
66
tar -zxvf resources.tar.gz
77
rm resources.tar.gz
88

038_ssdlite_mobiledet_edgetpu/04_float16_quantization/download.sh

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=11A8sjOWKPQNGXtI_L2VC-H-EdPevtbV6" > /dev/null
4-
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
5-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=11A8sjOWKPQNGXtI_L2VC-H-EdPevtbV6" -o resources.tar.gz
3+
fileid="11A8sjOWKPQNGXtI_L2VC-H-EdPevtbV6"
4+
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
5+
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz
66
tar -zxvf resources.tar.gz
77
rm resources.tar.gz
88

038_ssdlite_mobiledet_edgetpu/05_edgetpu/download.sh

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=160P9M7SmUpwzzs3a7hrRWRSQWuZELu86" > /dev/null
4-
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
5-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=160P9M7SmUpwzzs3a7hrRWRSQWuZELu86" -o resources.tar.gz
3+
fileid="160P9M7SmUpwzzs3a7hrRWRSQWuZELu86"
4+
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
5+
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz
66
tar -zxvf resources.tar.gz
77
rm resources.tar.gz
88

038_ssdlite_mobiledet_edgetpu/06_TFLite_Detection_PostProcess_Replacement/download.sh

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1doUO-3GYUzbjX1KiZ-VQEsGk8EfA3g6B" > /dev/null
4-
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
5-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1doUO-3GYUzbjX1KiZ-VQEsGk8EfA3g6B" -o resources.tar.gz
3+
fileid="1doUO-3GYUzbjX1KiZ-VQEsGk8EfA3g6B"
4+
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
5+
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz
66
tar -zxvf resources.tar.gz
77
rm resources.tar.gz
88

039_ssdlite_mobiledet_cpu/01_float32/download.sh

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1_0oaA7YUU7M1M0lWswhvaPrklwIOfVZj" > /dev/null
4-
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
5-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1_0oaA7YUU7M1M0lWswhvaPrklwIOfVZj" -o resources.tar.gz
3+
fileid="1_0oaA7YUU7M1M0lWswhvaPrklwIOfVZj"
4+
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
5+
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz
66
tar -zxvf resources.tar.gz
77
rm resources.tar.gz
88

0 commit comments

Comments
 (0)