From 44b4234311fe0e1781a1bf9348e9ec8327ae918c Mon Sep 17 00:00:00 2001 From: lubin10 Date: Tue, 17 May 2022 08:29:44 +0000 Subject: [PATCH] update tools/export_model.py tools/infer_rec.py --- tools/export_model.py | 2 +- tools/infer_rec.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/export_model.py b/tools/export_model.py index e971f6cb..c0cbcd36 100755 --- a/tools/export_model.py +++ b/tools/export_model.py @@ -17,7 +17,7 @@ import sys __dir__ = os.path.dirname(os.path.abspath(__file__)) sys.path.append(__dir__) -sys.path.append(os.path.abspath(os.path.join(__dir__, ".."))) +sys.path.insert(0, os.path.abspath(os.path.join(__dir__, ".."))) import argparse diff --git a/tools/infer_rec.py b/tools/infer_rec.py index 193e24a4..a08fa25b 100755 --- a/tools/infer_rec.py +++ b/tools/infer_rec.py @@ -157,7 +157,7 @@ def main(): if info is not None: logger.info("\t result: {}".format(info)) - fout.write(file + "\t" + info) + fout.write(file + "\t" + info + "\n") logger.info("success!") -- GitLab