This is a part of my research work titled Deep Learning based Real Time Crime Detection Using Video Survelliance
Python3, tensorflow 1.0, numpy, opencv 3. Links for installation below:
- Python 3.5 or 3.6, Anaconda
- Tensorflow. I recommend using the tensorflow GPU version. But if you don't have GPU, just go ahead and install the CPU versoin.
GPUs are more than 100x faster for training and testing neural networks than a CPU. Find more here - Opencv
- pygame
- bokeh
- Click this
- Download and extract the files somewhere locally
You can choose one of the following three ways to get started with darkflow.
-
Just build the Cython extensions in place. NOTE: If installing this way you will have to use
./flowin the cloned darkflow directory instead offlowas darkflow is not installed globally.python3 setup.py build_ext --inplace -
Let pip install darkflow globally in dev mode (still globally accessible, but changes to the code immediately take effect)
pip install -e . -
Install with pip globally
pip install .
- Download the YOLOv2 608x608 weights file here
- Read more about YOLO (in darknet) and download weight files here. In case the weight file cannot be found, you can check here, which include
yolo-fullandyolo-tinyof v1.0,tiny-yolo-v1.1of v1.1 andyolo,tiny-yolo-vocof v2. Owner of this weights is Trieu. - NOTE: there are other weights files you can try if you like
- create a
binfolder within thedarkflow-masterfolder - put the weights file in the
binfolder
See the result video (result.mp4) in my repo. I also added my research paper in this repo. You can follow that.
-
Real-time object detection and classification. Paper: version 1, version 2.
-
Simple Online and Realtime Tracking paper
-
Official YOLO website.
-
I have learned YOLO, how it works from coursera. Also Siraj has a nice tutorial on it.