Skip to content

Commit

Permalink
Fixed convert_gt_xml.py
Browse files Browse the repository at this point in the history
Running convert_gt_xml.py gave "NameError: name 'backup' is not defined
Fixed the issue in line 40.
  • Loading branch information
NH1922 authored May 5, 2019
1 parent 20d2f89 commit 3bd6137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/extra/convert_gt_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!")

0 comments on commit 3bd6137

Please sign in to comment.