Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.rppg.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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.rppg.base
Commits
f53c69f8
There was a problem fetching the pipeline summary.
Commit
f53c69f8
authored
6 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[tests] fixed image loading and eignenvalues test in SSR, added *.jpg and *.face in MANIFEST
parent
8a4ecca4
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!7
Fixed recipe to test all modules
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MANIFEST.in
+1
-1
1 addition, 1 deletion
MANIFEST.in
bob/rppg/ssr/script/test.py
+4
-13
4 additions, 13 deletions
bob/rppg/ssr/script/test.py
with
5 additions
and
14 deletions
MANIFEST.in
+
1
−
1
View file @
f53c69f8
include README.rst buildout.cfg develop.cfg COPYING version.txt requirements.txt
include README.rst buildout.cfg develop.cfg COPYING version.txt requirements.txt
recursive-include doc *.py *.rst *.ico *.png
recursive-include doc *.py *.rst *.ico *.png
*.jpg *.face
recursive-include scripts-article *.py *.rst
recursive-include scripts-article *.py *.rst
This diff is collapsed.
Click to expand it.
bob/rppg/ssr/script/test.py
+
4
−
13
View file @
f53c69f8
...
@@ -7,6 +7,9 @@ import os, sys
...
@@ -7,6 +7,9 @@ import os, sys
import
numpy
import
numpy
import
functools
import
functools
from
bob.io.base.test_utils
import
datafile
from
bob.io.base
import
load
def
test_get_skin_pixels
():
def
test_get_skin_pixels
():
"""
"""
...
@@ -19,13 +22,7 @@ def test_get_skin_pixels():
...
@@ -19,13 +22,7 @@ def test_get_skin_pixels():
mod
=
sys
.
modules
.
get
(
__name__
)
or
loader
.
load_module
(
__name__
)
mod
=
sys
.
modules
.
get
(
__name__
)
or
loader
.
load_module
(
__name__
)
# load face image
# load face image
face_file
=
'
data/001.jpg
'
face
=
load
(
datafile
(
'
001.jpg
'
,
'
bob.rppg.ssr.script
'
))
parts
=
face_file
.
split
(
'
/
'
)
parts
.
insert
(
0
,
os
.
path
.
dirname
(
mod
.
__file__
))
face_name
=
os
.
path
.
join
(
*
parts
)
import
bob.io.base
import
bob.io.image
face
=
bob
.
io
.
base
.
load
(
face_name
)
from
bob.rppg.ssr.ssr_utils
import
get_skin_pixels
from
bob.rppg.ssr.ssr_utils
import
get_skin_pixels
...
@@ -48,13 +45,7 @@ def test_get_eigen():
...
@@ -48,13 +45,7 @@ def test_get_eigen():
"""
"""
Test the computation of eigenvalues and eigenvector
Test the computation of eigenvalues and eigenvector
"""
"""
a
=
numpy
.
array
([[
1
,
0
],
[
0
,
1
]])
from
bob.rppg.ssr.ssr_utils
import
get_eigen
from
bob.rppg.ssr.ssr_utils
import
get_eigen
evals
,
evecs
=
get_eigen
(
a
)
assert
numpy
.
all
(
evals
==
numpy
.
array
([
0.5
,
0.5
]))
assert
numpy
.
all
(
evecs
==
numpy
.
array
([[
0
,
1
],
[
1
,
0
]]))
a
=
numpy
.
array
([[
0
,
0
],
[
0
,
0
]])
a
=
numpy
.
array
([[
0
,
0
],
[
0
,
0
]])
evals
,
evecs
=
get_eigen
(
a
)
evals
,
evecs
=
get_eigen
(
a
)
assert
numpy
.
all
(
evals
==
numpy
.
array
([
0
,
0
]))
assert
numpy
.
all
(
evals
==
numpy
.
array
([
0
,
0
]))
...
...
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