paddlepaddle的model转化问题
Created by: yeyupiaoling
下面的代码中前两个变量model_proto
paddle_model
是什么?
if __name__ == "__main__":
model_proto = sys.argv[1]
paddle_model = sys.argv[2]
conf = ModelConfig('%s.prototxt' % model_proto, '%s.caffemodel' % model_proto)
load_model_parameters(conf, [], paddle_model)
os.system("./caffe2mdl %s.prototxt %s.model" % (model_proto, model_proto))
pass