ncnn mobilenet ssd


原文链接: ncnn mobilenet ssd

convert_mobilenet_v1_ssd.sh

convert_mobilenet_v1_ssd.sh

#!/usr/bin/sh

rm -rf ../ncnn_models/mobilenet_v1_ssd
mkdir -p ../ncnn_models/mobilenet_v1_ssd

../../ncnn/build/tools/caffe/caffe2ncnn \
  ../caffe_models/mobilenet_v1_ssd/deploy.prototxt \
  ../caffe_models/mobilenet_v1_ssd/mobilenet_iter_73000.caffemodel \
  ../ncnn_models/mobilenet_v1_ssd/mobilenet_v1_ssd.param \
  ../ncnn_models/mobilenet_v1_ssd/mobilenet_v1_ssd.bin

../../ncnn/build/tools/caffe/caffe2ncnn \
  ../caffe_models/mobilenet_v1_ssd/deploy.prototxt \
  ../caffe_models/mobilenet_v1_ssd/mobilenet_iter_73000.caffemodel \
  ../ncnn_models/mobilenet_v1_ssd/mobilenet_v1_ssd_8bit.param \
  ../ncnn_models/mobilenet_v1_ssd/mobilenet_v1_ssd_8bit.bin \
  256 ../caffe_models/mobilenet_v1_ssd/mobilenet_ssd_quant.table

convert_caffe2ncnn/convert_mobilenet_v2.sh

#!/usr/bin/sh

rm -rf ../ncnn_models/mobilenet_v2
mkdir -p ../ncnn_models/mobilenet_v2

# float
../../ncnn/build/tools/caffe/caffe2ncnn \
  ../caffe_models/mobilenet_v2/mobilenet_v2_deploy.prototxt \
  ../caffe_models/mobilenet_v2/mobilenet_v2.caffemodel \
  ../ncnn_models/mobilenet_v2/mobilenet_v2.param \
  ../ncnn_models/mobilenet_v2/mobilenet_v2.bin

# 8bit quant
../../ncnn/build/tools/caffe/caffe2ncnn \
  ../caffe_models/mobilenet_v2/mobilenet_v2_deploy.prototxt \
  ../caffe_models/mobilenet_v2/mobilenet_v2.caffemodel \
  ../ncnn_models/mobilenet_v2/mobilenet_v2_8bit.param \
  ../ncnn_models/mobilenet_v2/mobilenet_v2_8bit.bin \
  256 ../caffe_models/mobilenet_v2/mobilenet_v2_quant.table

`