def __init__(self, name="network", pt=None):
self.net = caffe_pb2.NetParameter()
if pt is None:
self.net.name = name
else:
with open(pt, 'rt') as f:
pb2.text_format.Merge(f.read(), self.net)
self.bottom = None
self.cur = None
self.this = None
self._layer = None
self._bottom = None
评论列表
文章目录