diff --git a/libs/pascal_voc_io.py b/libs/pascal_voc_io.py index 906e5fae..87fcfcf4 100644 --- a/libs/pascal_voc_io.py +++ b/libs/pascal_voc_io.py @@ -42,7 +42,8 @@ class PascalVocWriter: return None top = Element('annotation') - top.set('verified', 'yes' if self.verified else 'no') + if self.verified: + top.set('verified', 'yes') folder = SubElement(top, 'folder') folder.text = self.foldername