-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/saifrahmed/HiringExercise…
- Loading branch information
Showing
4 changed files
with
111 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
echo "Cloning TensorBox" | ||
git clone http://github.com/russell91/tensorbox | ||
cd tensorbox | ||
|
||
# Setting up tensorbox by downloading required files | ||
|
||
echo "Downloading..." | ||
|
||
mkdir -p data && cd data | ||
|
||
osType=$(uname) | ||
case "$osType" in | ||
"Darwin") | ||
{ | ||
curl -O http://russellsstewart.com/s/tensorbox/inception_v1.ckpt | ||
mkdir -p overfeat_rezoom && cd overfeat_rezoom | ||
curl -O http://russellsstewart.com/s/tensorbox/overfeat_rezoom/save.ckpt-150000v2 | ||
} ;; | ||
"Linux") | ||
{ | ||
wget --continue http://russellsstewart.com/s/tensorbox/inception_v1.ckpt | ||
mkdir -p overfeat_rezoom && cd overfeat_rezoom | ||
wget --continue http://russellsstewart.com/s/tensorbox/overfeat_rezoom/save.ckpt-150000v2 | ||
} ;; | ||
*) | ||
{ | ||
echo "Unsupported OS, exiting" | ||
exit | ||
} ;; | ||
esac | ||
cd .. | ||
pwd | ||
echo "Compiling Tensorflow libraries" | ||
cd ../utils && make && cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
# The below instrutctions are for Python 2.7 | ||
|
||
echo "Installing virtualenv" | ||
|
||
# Execite commands based on OS type | ||
osType=$(uname) | ||
case "$osType" in | ||
"Darwin") | ||
{ | ||
sudo pip install --upgrade virtualenv | ||
} ;; | ||
"Linux") | ||
{ | ||
sudo apt-get install python-pip python-dev python-virtualenv | ||
} ;; | ||
*) | ||
{ | ||
echo "Unsupported OS, exiting" | ||
exit | ||
} ;; | ||
esac | ||
|
||
echo "Creating virtualenv in the current directory" | ||
virtualenv --system-site-packages . | ||
|
||
echo "Activate the viratualenv" | ||
source ./bin/activate | ||
|
||
echo "Installing tensorflow" | ||
pip install --upgrade tensorflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
pip install Pillow | ||
osType=$(uname) | ||
case "$osType" in | ||
"Darwin") | ||
{ | ||
brew install opencv | ||
brew install pkg-config | ||
} ;; | ||
"Linux") | ||
{ | ||
sudo apt-get install python-pip python-dev python-virtualenv | ||
} ;; | ||
*) | ||
{ | ||
echo "Not supported" | ||
} ;; | ||
esac |