add config.enable_memory_optim()

release/1.1
MissPenguin 5 years ago committed by GitHub
parent f051be8657
commit 160bb06e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,6 +88,7 @@ def create_predictor(args, mode):
if args.use_gpu:
config.enable_use_gpu(args.gpu_mem, 0)
config.enable_memory_optim()
else:
config.disable_gpu()
@ -310,4 +311,4 @@ if __name__ == '__main__':
new_img = draw_ocr(image, boxes, txts, scores, draw_txt=True)
cv2.imwrite(img_name, new_img)
cv2.imwrite(img_name, new_img)

Loading…
Cancel
Save