Skip to content

Commit 515a3f6

Browse files
sebasrivera96tzutalin
authored andcommitted
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".
1 parent 5d59f6c commit 515a3f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelImg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def format_shape(s):
768768
# Can add differrent annotation formats here
769769
try:
770770
if self.usingPascalVocFormat is True:
771-
annotationFilePath += XML_EXT
771+
# annotationFilePath += XML_EXT
772772
print ('Img: ' + self.filePath + ' -> Its xml: ' + annotationFilePath)
773773
self.labelFile.savePascalVocFormat(annotationFilePath, shapes, self.filePath, self.imageData,
774774
self.lineColor.getRgb(), self.fillColor.getRgb())

0 commit comments

Comments
 (0)