1 Environment Description
Os:ubuntu 16.04 LTS
Python 2.7.12 (System pre-installed) 2 installation CAFFE-SSD
This section refers to the CAFFE-SSD warehouse Readme Document, installation CAFFE-SSD similar to the installation Caffe, you can refer to Caffe (cpu-only) installation and configuration.
Enter the directory where you want to install CAFFE-SSD, and execute the following command to obtain its source code:
git clone https://github.com/weiliu89/caffe.git
cd caffe
git Checkout SSD
into the CAFFE-SSD root directory, run the following command to compile the source code:
# Modify the Makefile.config according to your own situation.
CP Makefile.config.example Makefile.config
make-j8
# Make sure to include $CAFFE _root/python to your Python PATH.
Make-py make
test-j8
# (Optional) make
runtest-j8
Make sure Caffe_root/python is contained in Pythonpath, where caffe_root refers to the root directory of CAFFE-SSD:
Export Pythonpath=/caffe_root/python: $PYTHONPATH
4 Download MOBILENET-SSD and run demo
Run the following command to obtain MOBILENET-SSD source code:
CD $CAFFE _root/examples
git clone https://github.com/chuanqi305/MobileNet-SSD.git
Download the forecast network model Mobilenetssd_deploy.caffemodel put it under the MOBILENET-SSD folder and run the demo with the following command:
Python./demo.py
We can see the results of the forecast.