File tree 3 files changed +66
-0
lines changed
3 files changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ # tensorflow built for raspberry pi
2
+ ## tested environment
3
+ * raspberry pi 2
4
+ * raspbian buster
5
+ * python 3.7.3
6
+ * pip 20.2.4
7
+
8
+ ## usage
9
+ ```
10
+ chmod +x install.sh
11
+ ./install.sh <version>
12
+ ```
13
+
14
+ ### supported versions
15
+ * 2.2.0
16
+ * 2.3.1
17
+
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # gdrive_download
4
+ #
5
+ # script to download Google Drive files from command line
6
+ # not guaranteed to work indefinitely
7
+ # taken from Stack Overflow answer:
8
+ # http://stackoverflow.com/a/38937732/7002068
9
+
10
+ gURL=$1
11
+ # match more than 26 word characters
12
+ ggID=$( echo " $gURL " | egrep -o ' (\w|-){26,}' )
13
+
14
+ ggURL=' https://drive.google.com/uc?export=download'
15
+
16
+ curl -sc /tmp/gcokie " ${ggURL} &id=${ggID} " > /dev/null
17
+ getcode=" $( awk ' /_warning_/ {print $NF}' /tmp/gcokie) "
18
+
19
+ cmd=' curl --insecure -C - -LOJb /tmp/gcokie "${ggURL}&confirm=${getcode}&id=${ggID}"'
20
+ echo -e " Downloading from " $gURL " ...\n"
21
+ eval $cmd
22
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ version=$1
3
+ if [ $version = " 2.2.0" ]
4
+ then
5
+ gID=" 175SQaXgc5eLlIPrkf1Lskx3gA4gmzy7r"
6
+ chk=" ^e2b702ee8d8cc5dd064c11563b1dbb48*"
7
+ elif [ $version = " 2.3.1" ]
8
+ then
9
+ gID=" 139vgrWvVLyqdLf-sr5btL4iF6i6RlLqQ"
10
+ chk=" ^0eca8ccb0b5f1954f81796e66b2d1ec8*"
11
+ else
12
+ echo " not available."
13
+ exit 1
14
+ fi
15
+
16
+ /bin/bash ./gdrive_download.sh $gID
17
+ cchk=$( md5sum ./tensorflow-$version -cp37-none-linux_armv7l.whl)
18
+ if [[ $cchk =~ $chk ]]
19
+ then
20
+ echo " checksum passed"
21
+ else
22
+ echo " corrupted file"
23
+ exit 1
24
+ fi
25
+
26
+ python3 -m pip install tensorflow-$version -cp37-none-linux_armv7l.whl
27
+
You can’t perform that action at this time.
0 commit comments