mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-10-25 10:17:04 +08:00
add no_grad
This commit is contained in:
@@ -53,6 +53,7 @@ def draw_det_res(dt_boxes, config, img, img_name, save_path):
|
||||
logger.info("The detected Image saved in {}".format(save_path))
|
||||
|
||||
|
||||
@paddle.no_grad()
|
||||
def main():
|
||||
global_config = config['Global']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user