优化比例夸张图片的处理

This commit is contained in:
2024-06-20 14:45:15 +08:00
parent a142a62774
commit b9c7200234
2 changed files with 91 additions and 27 deletions

View File

@@ -17,16 +17,13 @@ if __name__ == '__main__':
log = logging.getLogger()
# 崩溃后的重试次数
retry_time = RETRY_TIME + 1
for _ in range(retry_time):
for _ in range(RETRY_TIME + 1):
try:
log.info("照片审核开始")
log.info("照片审核关键信息抽取】开始")
main()
except Exception as e:
log.error(traceback.format_exc())
if SEND_ERROR_EMAIL:
send_an_error_email(program_name='照片审核关键信息抽取脚本', error_name=repr(e),
error_detail=traceback.format_exc())
send_an_error_email(program_name='照片审核关键信息抽取脚本', error_name=repr(e), error_detail=traceback.format_exc())
# 释放显存
paddle.device.cuda.empty_cache()
continue