def darknet2caffe(cfgfile, weightfile, protofile, caffemodel): net_info = cfg2prototxt(cfgfile) save_prototxt(net_info , protofile, region=False) net = caffe.Net(protofile, caffe.TEST) params = net.params blocks = parse_cfg(cfgfile) ...