我正在用python(pycaffe)使用caffe。我正在使用預構建的alexnet model from model zoo。我該如何升級我的咖啡模型,以免它每次使用時都「升級」
從這個頁面: https://github.com/BVLC/caffe/tree/master/models/bvlc_alexnet
我每次使用該模型,使用此代碼:
net = caffe.Classifier('deploy.prototxt','bvlc_alexnet.caffemodel',
channel_swap=(2,1,0),
raw_scale=255,
image_dims=(256, 256))
朱古力告訴我,文件格式是舊的,它需要升級文件。這不應該只發生一次?
E0304 20:52:57.356480 12716 upgrade_proto.cpp:609] Attempting to upgrade input file specified using deprecated transformation parameters: /tmp/bvlc_alexnet.caffemodel I0304 20:52:57.356554 12716 upgrade_proto.cpp:612] Successfully upgraded file specified using deprecated data transformation parameters. E0304 20:52:57.356564 12716 upgrade_proto.cpp:614] Note that future Caffe releases will only support transform_param messages for transformation fields. E0304 20:52:57.356580 12716 upgrade_proto.cpp:618] Attempting to upgrade input file specified using deprecated V1LayerParameter: /tmp/bvlc_alexnet.caffemodel I0304 20:52:59.307096 12716 upgrade_proto.cpp:626] Successfully upgraded file specified using deprecated V1LayerParameter
我怎樣才能正確地升級文件,以便這不會每一次發生。