Skip to content

Commit

Permalink
Added requirements file and updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
baljit92 committed Jul 2, 2017
1 parent ec9c25c commit 7930056
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 7 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ Once we have the dataset, we manually separate 20% of the data for validation an
The following pre-requisites need to be satisified for the project to run:
* Python 2.7
* Django 1.11.2
* pip
* `pip`
* OpenCV

Following commands can be used to install Django on both macOS and Unix machines:
For Ubuntu, install freetype before installing the required modules:
```
sudo apt-get install libfreetype6-dev libxft-dev
```
Following commands can be used to install pre-reqs using `pip`:
```
pip install Django==1.11.2
pip install Pillow
git clone https://github.com/saifrahmed/HiringExercise_MLEngineer_Baljit92.git
cd HiringExercise_MLEngineer_Baljit92
pip install -r requirements.txt
```

Once installed, follow the commands below:
Expand Down Expand Up @@ -71,13 +77,15 @@ The following pre-requisites need to be satisified for the machine learning proj
* pkg-config
* virtualenv
* Pillow 4.1.1
* FreeType

## Instructions to run
To setup TensorBox and evaluate the model, follow instructions below:


git clone https://github.com/saifrahmed/HiringExercise_MLEngineer_Baljit92.git
cd HiringExercise_MLEngineer_Baljit92
pip install -r requirements.txt
chmod +x *.sh
./install_tensorflow.sh
source ./bin/activate
Expand Down
7 changes: 4 additions & 3 deletions libraries_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ 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 "It's all good"
exit
} ;;
*)
{
echo "Not supported"
echo "Unsupported OS, exiting"
exit
} ;;
esac
29 changes: 29 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
backports.weakref==1.0rc1
bleach==1.5.0
cycler==0.10.0
Cython==0.25.2
Django==1.11.2
funcsigs==1.0.2
functools32==3.2.3.post2
html5lib==0.9999999
importlib==1.0.4
Markdown==2.6.8
matplotlib==2.0.2
mock==2.0.0
numpy==1.13.0
olefile==0.44
opencv-python==3.2.0.7
pbr==3.1.1
Pillow==4.2.0
pkg-resources==0.0.0
protobuf==3.3.0
pyparsing==2.2.0
python-dateutil==2.6.0
pytz==2017.2
runcython==0.2.5
scipy==0.13.0
six==1.10.0
subprocess32==3.2.7
tensorflow==1.2.1
virtualenv==15.0.1
Werkzeug==0.12.2

0 comments on commit 7930056

Please sign in to comment.