MobileNetv2-SSDLite
MobileNetv2-SSDLite copied to clipboard
dump_tensorflow_weights.py with error
i run the following command :python3 dump_tensorflow_weights.py
and get this error:
Traceback (most recent call last):
File "dump_tensorflow_weights.py", line 95, in
i fix it by change the code at line 71
if output_name.find('BoxEncodingPredictor') != -1: boxes = caffe_weights.shape[0] / 4 elif output_name.find('ClassPredictor') != -1: boxes = caffe_weights.shape[0] / 91
to
if output_name.find('BoxEncodingPredictor') != -1: boxes = caffe_weights.shape[0] // 4 elif output_name.find('ClassPredictor') != -1: boxes = caffe_weights.shape[0] // 91
and i wonder if it is ok or not ?
it ok! this script is write by python2, if you use python3,should change '/' to '//'
@he-chen Thank you very much, I have merged your code to my project.