Remove lines on saveLabels function to save correctly XML files
This commit is contained in:
parent
515a3f6606
commit
96c723c139
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user