Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.face
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.face
Commits
30ad7b48
Commit
30ad7b48
authored
3 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Deprecated test_transformers
parent
e9d32305
No related branches found
No related tags found
1 merge request
!112
Feature extractors
Pipeline
#51307
failed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/test/test_transformers.py
+0
-21
0 additions, 21 deletions
bob/bio/face/test/test_transformers.py
with
0 additions
and
21 deletions
bob/bio/face/test/test_transformers.py
deleted
100644 → 0
+
0
−
21
View file @
e9d32305
import
numpy
as
np
from
bob.pipelines
import
Sample
from
bob.bio.base
import
load_resource
from
bob.bio.base.test.utils
import
is_library_available
import
pytest
def
get_fake_sample
(
face_size
=
(
160
,
160
),
eyes
=
{
"
leye
"
:
(
46
,
107
),
"
reye
"
:
(
46
,
53
)}):
np
.
random
.
seed
(
10
)
data
=
np
.
random
.
rand
(
3
,
400
,
400
)
annotations
=
{
"
leye
"
:
(
115
,
267
),
"
reye
"
:
(
115
,
132
)}
return
Sample
(
data
,
key
=
"
1
"
,
annotations
=
annotations
)
def
test_lgbphs
():
transformer
=
load_resource
(
"
lgbphs
"
,
"
transformer
"
)
fake_sample
=
get_fake_sample
()
transformed_sample
=
transformer
.
transform
([
fake_sample
])[
0
]
transformed_data
=
transformed_sample
.
data
assert
transformed_sample
.
data
.
shape
==
(
2
,
44014
)
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