forked from TensorPy/TensorPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·23 lines (22 loc) · 899 Bytes
/
install.sh
File metadata and controls
executable file
·23 lines (22 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Installs TensorPy, TensorFlow, ImageNet, and required dependancies
pip install --upgrade pip
echo "Installing TensorPy..."
pip install -r requirements.txt
python setup.py install
value="$(uname)"
if [ $value == "Linux" ]
then
echo "Initializing TensorFlow setup on a Linux machine..."
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.1.0-cp27-none-linux_x86_64.whl
pip install --ignore-installed --upgrade $TF_BINARY_URL
elif [ $value == "Darwin" ]
then
echo "Initializing TensorFlow setup on a MAC..."
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.1.0-py2-none-any.whl
pip install --ignore-installed --upgrade $TF_BINARY_URL
else
echo "Incompatible machine for TensorFlow. Exiting script..."
fi
echo "Downloading ImageNet Inception DB (for classifying images)..."
python tensorpy/download_imagenet.py
exit