Skip to content

eric612/MobileNet-SSD-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows Caffe

**This is an experimental, fixed some bugs from https://github.com/runhang/caffe-ssd-windows and I add following items into project

  1. add opencv imshow
  2. add MobileNet

Windows Setup

Requirements

  • Visual Studio 2013 or 2015
  • CMake 3.4 or higher (Visual Studio and Ninja generators are supported)
  • Anaconda

Optional Dependencies

  • Python for the pycaffe interface. Anaconda Python 2.7 or 3.5 x64 (or Miniconda)
  • Matlab for the matcaffe interface.
  • CUDA 7.5 or 8.0 (use CUDA 8 if using Visual Studio 2015)
  • cuDNN v5

We assume that cmake.exe and python.exe are on your PATH.

Configuring and Building Caffe (CPU Only)

Create a python2.7 env from Anaconda and activate

> cd $caffe_root/script
> build_win.cmd

For Visual 2013

Edit build_win.cmd and set varible MSVC_VERSION=12

For GPU

config build_win.cmd and set CPU_Only flag to 0

Running Caffe

Download SSD_300x300 deploy model and save at

$caffe_root\models\VGGNet\VOC0712\SSD_300x300\

Download deploy weights from original web and save at

$caffe_root\models\MobileNet\

> cd $caffe_root/
> dectect.cmd

Python Usage

> cd $caffe_root
> python examples\ssd\test_ssd.py data\VOC0712\000166.jpg models\MobileNet\MobileNetSSD_deploy.prototxt models\MobileNet\MobileNetSSD_deploy.caffemodel

If load success , you can see the image window like this

alt tag

Optional detector

Set detect.cmd varible "detector" (0,1) to switch VGG or MobileNet

Trainning Prepare

Download lmdb

Unzip into $caffe_root/

Please check the path exist "$caffe_root\examples\VOC0712\VOC0712_trainval_lmdb"

Trainning VGG_SSD Caffe

Download SSD_300x300 pretrain weights and save at

$caffe_root\models\VGGNet\

> cd $caffe_root/
> train.cmd

Trainning MobilentSSD

Download pre-train weights from original web and save at

$caffe_root\models\MobileNet\

> cd $caffe_root/
> train_mobilenet.cmd

Trainning own dataset and deploy

follow this project step

Video Demo

> cd $caffe_root/
> demo.cmd

IMAGE ALT TEXT HERE

Vehicle deploy model

CLASS NAME
char* CLASSES2[6] = { "__background__","bicycle", "car", "motorbike", "person","cones" };
Model and Weights

weights

model

Demo Video

IMAGE ALT TEXT HERE

Releases

No releases published

Packages

No packages published

Languages

  • C++ 82.0%
  • Python 7.8%
  • Cuda 5.1%
  • CMake 3.2%
  • MATLAB 0.6%
  • Makefile 0.5%
  • Other 0.8%