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
yaoyuping
nnDetection
Commits
406991f1
Commit
406991f1
authored
May 21, 2021
by
mibaumgartner
Browse files
bug fix
parent
66ec1f63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
nndet/utils/check.py
nndet/utils/check.py
+8
-7
No files found.
nndet/utils/check.py
View file @
406991f1
...
@@ -173,6 +173,7 @@ def check_data_and_label_splitted(
...
@@ -173,6 +173,7 @@ def check_data_and_label_splitted(
raise
ValueError
(
f
"Expected
{
mask_info_path
}
to be a raw splitted "
raise
ValueError
(
f
"Expected
{
mask_info_path
}
to be a raw splitted "
"mask info path but it does not exist."
)
"mask info path but it does not exist."
)
mask_info
=
load_json
(
mask_info_path
)
mask_info
=
load_json
(
mask_info_path
)
if
mask_info
[
"instances"
]:
mask_info_instances
=
list
(
map
(
int
,
mask_info
[
"instances"
].
keys
()))
mask_info_instances
=
list
(
map
(
int
,
mask_info
[
"instances"
].
keys
()))
if
j
:
=
not
min
(
mask_info_instances
)
==
1
:
if
j
:
=
not
min
(
mask_info_instances
)
==
1
:
...
...
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