通过 caffe 的 python 接口测试模型分类出现如下错误,TypeError: _open() got an unexpected keyword argument 'as_grey'
python classify-alexnet.py --gpu test.jpg result
...
I1005 15:32:11.174566 31243 net.cpp:244] This network produces output prob
I1005 15:32:11.174882 31243 net.cpp:257] Network initialization done.
I1005 15:32:11.199013 31243 upgrade_proto.cpp:79] Attempting to upgrade batch norm layers using deprecated params: /home/user/densenet121.caffemodel
I1005 15:32:11.199146 31243 upgrade_proto.cpp:82] Successfully upgraded batch norm layers using deprecated params.
I1005 15:32:11.199154 31243 net.cpp:746] Ignoring source layer label_data_1_split
I1005 15:32:11.205960 31243 net.cpp:746] Ignoring source layer fc6_fc6_0_split
I1005 15:32:11.205986 31243 net.cpp:746] Ignoring source layer loss
I1005 15:32:11.205992 31243 net.cpp:746] Ignoring source layer accuracy/top1
I1005 15:32:11.206010 31243 net.cpp:746] Ignoring source layer accuracy/top5
Loading file: test.jpg