From 515a3f6606bc385e7165a39744a613b0f14833e9 Mon Sep 17 00:00:00 2001 From: Sebastian Rivera Date: Tue, 15 May 2018 12:07:11 +0200 Subject: [PATCH] Modify labelImg.py to solve an error when naming the .xml file A line was commented out because there was an error. When a box was drawn around an object and then saved, the file had a termination ".xml.xml" instead of just ".xml". --- labelImg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelImg.py b/labelImg.py index 261e1c14..91d2f8a7 100755 --- a/labelImg.py +++ b/labelImg.py @@ -768,7 +768,7 @@ class MainWindow(QMainWindow, WindowMixin): # Can add differrent annotation formats here try: if self.usingPascalVocFormat is True: - annotationFilePath += XML_EXT + # annotationFilePath += XML_EXT print ('Img: ' + self.filePath + ' -> Its xml: ' + annotationFilePath) self.labelFile.savePascalVocFormat(annotationFilePath, shapes, self.filePath, self.imageData, self.lineColor.getRgb(), self.fillColor.getRgb())