Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
inovisao
pynovisao
Commits
90e7e67f
Commit
90e7e67f
authored
Sep 10, 2020
by
Diego André Sant'Ana
🤞
Browse files
fix problem with python3 and extractor features
parent
46064a71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/extraction/feature_extraction.py
src/extraction/feature_extraction.py
+3
-1
No files found.
src/extraction/feature_extraction.py
View file @
90e7e67f
...
...
@@ -173,7 +173,9 @@ class FeatureExtractor(object):
raise
IException
(
"Image %s is possibly corrupt"
%
filepath
)
if
len
(
self
.
data
)
>
0
:
values
=
list
(
itertools
.
chain
.
from_iterable
(
zip
(
*
([
extractor
().
run
(
image
)[
2
]
for
extractor
in
self
.
extractors
]))))
labs
,
tys
,
values
=
[
list
(
itertools
.
chain
.
from_iterable
(
ret
))
for
ret
in
zip
(
*
(
extractor
().
run
(
image
)
for
extractor
in
self
.
extractors
))]
self
.
data
.
append
(
values
+
[
cl
if
cl
in
classes
else
classes
[
0
]])
...
...
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