From 3bd6137b06af043a59826fcd20e9c1a92a72fd77 Mon Sep 17 00:00:00 2001 From: Nitish Yadav <31303415+NH1922@users.noreply.github.com> Date: Sun, 5 May 2019 11:37:19 +0530 Subject: [PATCH] Fixed convert_gt_xml.py Running convert_gt_xml.py gave "NameError: name 'backup' is not defined Fixed the issue in line 40. --- scripts/extra/convert_gt_xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extra/convert_gt_xml.py b/scripts/extra/convert_gt_xml.py index 9a0258f1d..69e38e762 100644 --- a/scripts/extra/convert_gt_xml.py +++ b/scripts/extra/convert_gt_xml.py @@ -37,5 +37,5 @@ bottom = bndbox.find('ymax').text new_f.write("%s %s %s %s %s\n" % (obj_name, left, top, right, bottom)) # 2. move old file (xml format) to backup - os.rename(tmp_file, os.path.join(backup, tmp_file)) + os.rename(tmp_file, os.path.join("backup", tmp_file)) print("Conversion completed!")