Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ehofesmann/PawPal
Browse files Browse the repository at this point in the history
  • Loading branch information
ehofesmann committed Dec 15, 2018
2 parents 67e2008 + cd4bc6e commit 35870dd
Showing 1 changed file with 52 additions and 11 deletions.
63 changes: 52 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ Using state-of-the-art computer vision algorithms, this dog localization and act
![](https://github.com/ehofesmann/PawPal/blob/master/images/pipeline.png)


## Requirements
Python3, Tensorflow, Numpy, OpenCV

[Darkflow](https://github.com/thtrieu/darkflow) for Yolo

[M-PACT](https://github.com/MichiganCOG/M-PACT) Activity Recognition Platform


## Results
![](https://github.com/ehofesmann/PawPal/blob/master/images/furniture.png)
Expand All @@ -31,18 +24,66 @@ Across 5 splits given in ```tfrecords_pawpal/split.npy``` in the dataset downloa

## Usage

### Setup


### Requirements
Python 3.5

OpenCV

Tensorflow 1.0.0

Cython


[Darkflow](https://github.com/thtrieu/darkflow) for Yolo

[M-PACT](https://github.com/MichiganCOG/M-PACT) Activity Recognition Platform

Detailed installation instructions below.

### Installation and Setup

Follow instructions below to install darkflow and PawPal
```
git clone https://github.com/thtrieu/darkflow
virtualenv -p python3.5 env
source env/bin/activate
pip install tensorflow==1.0.0
pip install Cython
pip install opencv-python
cd darkflow
sudo apt-get install python3 python-dev python3-dev \
build-essential libssl-dev libffi-dev \
libxml2-dev libxslt1-dev zlib1g-dev \
python-pip
pip install -e .
flow (ignore any errors)
cd ..
git clone https://github.com/ehofesmann/PawPal/
cd PawPal
mkdir ../weights/
```
Download the weights for C3D [Download link](https://umich.box.com/s/va0jkzx6ym0vb4k6909sxebjijne0uez)

Add the weight file to ```PawPal/c3d/```.
Download yolo.weights [Download link](https://drive.google.com/drive/folders/0B1tW_VtY7onidEwyQ2FtQVplWEU)
```
mv ~/Downloads/checkpoint-532.npy ../weights/
mv ~/Downloads/yolo.weights ../darkflow/bin/
```
Update the /path/to/darkflow in detect_video.py
```
python detect_video.py --vidpath example/example1.mp4
```

### Testing

```
python detection_c3d.py --vidnum 0
python detect_video.py --vidpath example/example1.mp4
```

### Training
### Training or Finetuneing

#### Dataset
Dog biting vs non biting tfrecords dataset [Download link](https://umich.box.com/s/jptvbcuig2ieejmhhv7p8kic7t3vraeu)
Expand Down

0 comments on commit 35870dd

Please sign in to comment.