Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pad.base
Commits
196240af
Commit
196240af
authored
7 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[helper] corrected one of the convert frames ... function to work with numpy arrays
parent
8354dc0c
No related branches found
No related tags found
1 merge request
!32
Minor fixes
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/base/utils/helper_functions.py
+9
-5
9 additions, 5 deletions
bob/pad/base/utils/helper_functions.py
with
9 additions
and
5 deletions
bob/pad/base/utils/helper_functions.py
+
9
−
5
View file @
196240af
...
...
@@ -87,13 +87,17 @@ def convert_list_of_frame_cont_to_array(frame_containers):
An array containing features for all frames of all individuals.
"""
feature_vectors
=
[]
if
isinstance
(
frame_containers
[
0
],
bob
.
bio
.
video
.
FrameContainer
):
feature_vectors
=
[]
for
frame_container
in
frame_containers
:
video_features_array
=
convert_frame_cont_to_array
(
frame_container
)
feature_vectors
.
append
(
video_features_array
)
else
:
feature_vectors
=
frame_containers
features_array
=
np
.
vstack
(
feature_vectors
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment