diff --git a/tools/export_model.py b/tools/export_model.py index e971f6cb20025d529d0387d287ec87a76abbdbe7..c0cbcd361cec31c51616a7154836c234f076a86e 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 193e24a4de12392130d16b86a3407db74602e1f4..a08fa25b467482da4a2996912ad2cc8cc7c398da 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!")