<参考链接:https://blog.csdn.net/lilai619/article/details/49489975>(问题7)
caffe模型测试程序,运行到classifier.predict(inputs_img, not args.center_only)这一句时,报错如下:
"...caffe/classifier.py", line 67, in predict
inputs[0].shape[2]),
IndexError: tuple index out of range
解决方法:
应改为classifier.predict( [ inputs_img ] , not args.center_only),inputs_img应以列表形式送入网络进行预测。