def __init__(self,
model_def,
model_weights,
y_tag_json_path,
is_mode_cpu=True,
width=32,
height=32):
self.net = caffe.Net(model_def,
model_weights,
caffe.TEST)
if is_mode_cpu:
caffe.set_mode_cpu()
self.y_tag_json = json.load(open(y_tag_json_path, "r"))
self.width = width
self.height = height
评论列表
文章目录