diff --git a/README.md b/README.md index b264935..b4c9d57 100644 --- a/README.md +++ b/README.md @@ -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: @@ -71,6 +77,7 @@ 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: @@ -78,6 +85,7 @@ 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 diff --git a/libraries_setup.sh b/libraries_setup.sh index f8ed030..337dd88 100755 --- a/libraries_setup.sh +++ b/libraries_setup.sh @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2b51899 --- /dev/null +++ b/requirements.txt @@ -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 \ No newline at end of file