From beae94c965934a988d8529f5bb13b2b0ecd6d074 Mon Sep 17 00:00:00 2001 From: livingbody Date: Thu, 6 Jan 2022 00:03:15 +0800 Subject: [PATCH] get basename of filename get basename of filename --- tools/infer_rec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/infer_rec.py b/tools/infer_rec.py index 2c9b5f79..b0c836ff 100755 --- a/tools/infer_rec.py +++ b/tools/infer_rec.py @@ -137,7 +137,7 @@ def main(): if info is not None: logger.info("\t result: {}".format(info)) - fout.write(file + "\t" + info + "\n") + fout.write(os.path.basename(file) + "\t" + info + "\n") logger.info("success!") -- GitLab