From 96c723c139446ded47d748b79713865020c3456c Mon Sep 17 00:00:00 2001 From: Sebastian Rivera Date: Wed, 16 May 2018 17:20:05 +0200 Subject: [PATCH] Remove lines on saveLabels function to save correctly XML files --- labelImg.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/labelImg.py b/labelImg.py index 91d2f8a7..c891eb45 100755 --- a/labelImg.py +++ b/labelImg.py @@ -768,12 +768,10 @@ class MainWindow(QMainWindow, WindowMixin): # Can add differrent annotation formats here try: if self.usingPascalVocFormat is True: - # 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()) elif self.usingYoloFormat is True: - annotationFilePath += TXT_EXT print ('Img: ' + self.filePath + ' -> Its txt: ' + annotationFilePath) self.labelFile.saveYoloFormat(annotationFilePath, shapes, self.filePath, self.imageData, self.labelHist, self.lineColor.getRgb(), self.fillColor.getRgb())