项目作者: Team334

项目描述 :
:bulb: Gear detection neural network
高级语言: C++
项目地址: git://github.com/Team334/gear-detector.git
创建时间: 2017-03-13T13:12:03Z
项目社区:https://github.com/Team334/gear-detector

开源协议:Other

下载


Gear Detector for FIRST Steamworks

Forked from weiliu89/caffe



This is a CNN (convolutional neural network) for detecting the gear game pieces in FIRST Steamworks. It uses the SSD architecture.

Installation

Follow the installation instructions from weiliu89/caffe.

Preparing Data

Setup environment variables:

Set $CAFFE_ROOT to the directory caffe is in:

  1. export CAFFE_ROOT=<your caffe installation path>

Download VGGNet

This downloads a pretrained VGGNet model. Warning: this will download an 82 MB file.

  1. mkdir -p $CAFFE_ROOT/models/VGGNet
  2. cd $CAFFE_ROOT/models/VGGNet
  3. wget http://cs.unc.edu/~wliu/projects/ParseNet/VGG_ILSVRC_16_layers_fc_reduced.caffemodel

Download the gear training data:

  1. mkdir -p ~/data/VOCdevkit_STEAMWORKS
  2. cd ~/data/VOCdevkit_STEAMWORKS
  3. git clone https://github.com/Team334/gear-data.git GearData

Create LMDB files:

  1. cd $CAFFE_ROOT
  2. ./data/STEAMWORKS/create_data.sh

Training

Train the model using examples/ssd/ssd_pascal_steamworks.py:

  1. cd $CAFFE_ROOT
  2. python examples/ssd/ssd_pascal_steamworks.py

You can change the script to suite your needs:

  • The GPUs to use can be specified here.
  • The number of iterations to run can be specified here