Unverified Commit 160bb06e authored by MissPenguin's avatar MissPenguin Committed by GitHub
Browse files

add config.enable_memory_optim()

parent f051be86
......@@ -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)
\ No newline at end of file
cv2.imwrite(img_name, new_img)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment