Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
c924285b
Commit
c924285b
authored
Nov 17, 2016
by
Xionghc
Browse files
fixed ValueError when processing bbox in XML annotation file
parent
a66b9e13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
inception/inception/data/process_bounding_boxes.py
inception/inception/data/process_bounding_boxes.py
+3
-1
No files found.
inception/inception/data/process_bounding_boxes.py
View file @
c924285b
...
@@ -102,7 +102,9 @@ def GetItem(name, root, index=0):
...
@@ -102,7 +102,9 @@ def GetItem(name, root, index=0):
def
GetInt
(
name
,
root
,
index
=
0
):
def
GetInt
(
name
,
root
,
index
=
0
):
return
int
(
GetItem
(
name
,
root
,
index
))
# In some XML annotation files, the point value are not int, but float.
# So adding a float function to avoid ValueError.
return
int
(
float
(
GetItem
(
name
,
root
,
index
)))
def
FindNumberBoundingBoxes
(
root
):
def
FindNumberBoundingBoxes
(
root
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment