Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.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.pad.face
Commits
2528e0aa
Commit
2528e0aa
authored
7 years ago
by
Olegs NIKISINS
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the nose tests for VideoFaceCrop
parent
dce0ad84
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!50
Fixing builds: tests and conda recipe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/face/test/test.py
+2
-6
2 additions, 6 deletions
bob/pad/face/test/test.py
with
2 additions
and
6 deletions
bob/pad/face/test/test.py
+
2
−
6
View file @
2528e0aa
...
...
@@ -248,12 +248,8 @@ def test_video_face_crop():
assert
len
(
faces
)
==
3
assert
faces
[
0
][
1
].
shape
==
(
3
,
64
,
64
)
assert
faces
[
-
1
][
1
].
shape
==
(
3
,
64
,
64
)
print
(
np
.
sum
(
faces
[
0
][
1
]))
print
(
np
.
sum
(
faces
[
-
1
][
1
]))
# assert np.sum(faces[0][1]) == 1251500
# assert np.sum(faces[-1][1]) == 1251500
assert
np
.
sum
(
faces
[
0
][
1
])
==
1238664
assert
np
.
sum
(
faces
[
-
1
][
1
])
==
1238664
#==============================================================================
...
...
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