Skip to content

Commit a4b433a

Browse files
committed
- fix bug
修自动分割(基于标注框)生成的json文件中,width、height、depth字段为字符串的问题
1 parent 8c710e6 commit a4b433a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ISAT/widgets/auto_segment_dialog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ def run(self):
6161
root = tree.getroot()
6262
objs = root.findall('object')
6363
size = root.find('size')
64-
width = size.find('width').text
65-
height = size.find('height').text
66-
depth = size.find('depth').text
64+
width = int(size.find('width').text)
65+
height = int(size.find('height').text)
66+
depth = int(size.find('depth').text)
6767
except Exception as e:
6868
self.message.emit(-1, -1, 'Load xml error: {}'.format(e))
6969
continue

0 commit comments

Comments
 (0)