Skip to content

Commit

Permalink
Added missing images, updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
baljit92 committed Jul 21, 2017
1 parent 55853a7 commit 4421fe6
Show file tree
Hide file tree
Showing 17 changed files with 60 additions and 79 deletions.
69 changes: 30 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,34 @@

# Web app to annotate/label images

## Instructions to run
The following pre-requisites need to be satisified for the project to run:
* Python 2.7
* Django 1.11.2
* `pip`
* OpenCV
* pip
* Pillow 4.1.1
* TensorBox
* pkg-config
* virtualenv
* FreeType

For Ubuntu, the below files are required before installing the required modules:
```
sudo apt-get install libfreetype6-dev libxft-dev
sudo apt-get install python-tk
```
Following commands can be used to install pre-reqs using `pip`:
```
git clone https://github.com/saifrahmed/HiringExercise_MLEngineer_Baljit92.git
cd HiringExercise_MLEngineer_Baljit92
chmod +x *.sh
./setup_virtualenv.sh
source ./bin/activate
```


## Description

The web app let's the user annotate images by drawing a bounding box around the skulls in the image. The user can label the image with *Skull* or *Not Skull* class.
Expand All @@ -24,28 +52,8 @@ Once we have the dataset, we manually separate 20% of the data for validation an


## Instructions to run
The following pre-requisites need to be satisified for the project to run:
* Python 2.7
* Django 1.11.2
* `pip`
* OpenCV
* pip
* Pillow 4.1.1


For Ubuntu, the below files are required before installing the required modules:
```
sudo apt-get install libfreetype6-dev libxft-dev
sudo apt-get install python-tk
```
Following commands can be used to install pre-reqs using `pip`:
```
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:
Once the requirements have been installed, follow the commands below to run the server:
```
cd src/webapp/TrainImage_Annotate/
python manage.py runserver
Expand Down Expand Up @@ -73,16 +81,6 @@ After downloading the dataset csv file from the webapp; use the script `convert_
Once we have the training data and the validation data, use [TensorBox](https://github.com/TensorBox/TensorBox) to train a machine learning model. A trained model has
already been provided with the name of _save.ckpt-18000_

## Pre-requisites
The following pre-requisites need to be satisified for the machine learning project to run:
* Python 2.7
* TensorBox
* OpenCV
* pip
* pkg-config
* virtualenv
* Pillow 4.1.1
* FreeType

## Instructions to run

Expand All @@ -92,15 +90,8 @@ sudo apt-get install libfreetype6-dev libxft-dev
sudo apt-get install python-tk
```

To setup TensorBox and evaluate the model, follow instructions below:
To setup TensorBox and evaluate the model, follow instructions below(inside virtualenv) after the requirements have been installed:


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
./libraries_setup.sh
./install_tensorbox.sh
mv ./src/machine_learning/model/* ./tensorbox/data/
Expand Down
36 changes: 0 additions & 36 deletions install_tensorbox.sh

This file was deleted.

3 changes: 0 additions & 3 deletions install_tensorflow.sh → setup_virtualenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,3 @@ virtualenv --system-site-packages .

echo "Activate the viratualenv"
source ./bin/activate

echo "Installing tensorflow"
pip install --upgrade tensorflow
1 change: 1 addition & 0 deletions src/machine_learning/data/testing_set_present.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"rects": [], "image_path": "../src/webapp/TrainImage_Annotate/uploadFils/imageTest.jpeg"}]
7 changes: 6 additions & 1 deletion src/webapp/TrainImage_Annotate/Annotate/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ a:hover
.button-design
{
margin-top: 100px;
}
}

.imgContainer{
float:left;
}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_cloud_upload_48pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_cloud_upload_48pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_cloud_upload_48pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4421fe6

Please sign in to comment.