Skip to content

Commit 1ea3387

Browse files
committed
Bash files to get the models.
1 parent 57d544e commit 1ea3387

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
.ipynb_checkpoints/
22
video_data/
3-
!video_data/readme.md
43
.idea/
54
examples/output.avi
6-
75
pretrained_models/caffemodel_weights/
8-
!pretrained_models/caffemodel_weights/get_caffemodel.sh
9-
106
pretrained_models/tensorflow_weights/
11-
!pretrained_models/tensorflow_weights/get_ssd_model.sh
12-
137
pretrained_models/yolo_weights/
14-
!pretrained_models/yolo_weights/get_yolo.sh
158

169
# Byte-compiled / optimized / DLL files
1710
__pycache__/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
# MobileNet-SSD model reference https://github.com/chuanqi305/MobileNet-SSD/
4+
5+
wget --no-check-certificate "https://drive.google.com/u/0/uc?id=0B3gersZ2cHIxRm5PMWRoTkdHdHc&export=download" -O 'MobileNetSSD_deploy.caffemodel'
6+
wget "https://raw.githubusercontent.com/chuanqi305/MobileNet-SSD/daef68a6c2f5fbb8c88404266aa28180646d17e0/MobileNetSSD_deploy.prototxt" -O "MobileNetSSD_deploy.prototxt"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
# Get models from https://github.com/opencv/opencv/wiki/TensorFlow-Object-Detection-API#use-existing-config-file-for-your-model
4+
5+
wget -c http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v2_coco_2018_03_29.tar.gz -O - | tar -xz
6+
wget https://raw.githubusercontent.com/opencv/opencv_extra/master/testdata/dnn/ssd_mobilenet_v2_coco_2018_03_29.pbtxt
7+
8+
# Tensorflow object detection API: https://github.com/opencv/opencv/wiki/TensorFlow-Object-Detection-API#use-existing-config-file-for-your-model
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
wget https://pjreddie.com/media/files/yolov3.weights
3+
wget https://raw.githubusercontent.com/pjreddie/darknet/master/cfg/yolov3.cfg
4+
wget https://raw.githubusercontent.com/pjreddie/darknet/master/data/coco.names

video_data/readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Data
2+
3+
Save the video files in this folder.
4+
The example videos used can be downloaded from the following links:
5+
6+
* cars: https://flic.kr/p/L6qyxj
7+
* cows: https://flic.kr/p/26WeEWy
8+
* people: https://flic.kr/p/7gWofV

0 commit comments

Comments
 (0)