Fix issues and update version to 1.3.2
This commit is contained in:
@@ -158,6 +158,8 @@ class PascalVocReader:
|
||||
bndbox = object_iter.find("bndbox")
|
||||
label = object_iter.find('name').text
|
||||
# Add chris
|
||||
difficult = bool(int(object_iter.find('difficult').text))
|
||||
difficult = False
|
||||
if object_iter.find('difficult') is not None:
|
||||
difficult = bool(int(object_iter.find('difficult').text))
|
||||
self.addShape(label, bndbox, difficult)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user