Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.example.faceverify
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.example.faceverify
Commits
2fcc4d78
Commit
2fcc4d78
authored
13 years ago
by
Manuel Günther
Browse files
Options
Downloads
Patches
Plain Diff
Added the requirement of Bob version 1.0.3
parent
4ba616d2
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.rst
+3
-0
3 additions, 0 deletions
README.rst
faceverify/eigenface.py
+9
-0
9 additions, 0 deletions
faceverify/eigenface.py
localbob.cfg
+1
-1
1 addition, 1 deletion
localbob.cfg
with
13 additions
and
1 deletion
README.rst
+
3
−
0
View file @
2fcc4d78
...
@@ -13,6 +13,9 @@ have a Bob version yet, you can get it from:
...
@@ -13,6 +13,9 @@ have a Bob version yet, you can get it from:
http://idiap.github.com/bob/
http://idiap.github.com/bob/
If you already have installed Bob, please make sure that you have at least
the version 1.0.3, otherwise the example won't work.
The AT&T image database is quite small, but sufficient to show how the face
The AT&T image database is quite small, but sufficient to show how the face
verification methods work. Still, the results may not be meaningful. One good
verification methods work. Still, the results may not be meaningful. One good
thing about the AT&T database is that it is freely available. You can download
thing about the AT&T database is that it is freely available. You can download
...
...
This diff is collapsed.
Click to expand it.
faceverify/eigenface.py
+
9
−
0
View file @
2fcc4d78
...
@@ -85,6 +85,15 @@ def main():
...
@@ -85,6 +85,15 @@ def main():
print
"
Training PCA machine
"
print
"
Training PCA machine
"
pca_machine
=
train
(
training_images
)
pca_machine
=
train
(
training_images
)
# extract the first eigenvector
projection_matrix
=
pca_machine
.
weights
eigen_image
=
projection_matrix
[:,
0
]
# reshape the eigenvector to the right image resolution
eigen_image
.
shape
=
(
112
,
92
)
# show the first eigenface
pyplot
.
imshow
(
eigen_image
,
cmap
=
'
gray
'
)
pyplot
.
show
()
#####################################################################
#####################################################################
### extract eigenface features of model and probe images
### extract eigenface features of model and probe images
...
...
This diff is collapsed.
Click to expand it.
localbob.cfg
+
1
−
1
View file @
2fcc4d78
...
@@ -36,7 +36,7 @@ recipe = local.bob.recipe:config
...
@@ -36,7 +36,7 @@ recipe = local.bob.recipe:config
; If you go for a relative path, remember this path is relative to the path
; If you go for a relative path, remember this path is relative to the path
; you are calling buildout from. This is normally the path that contains the
; you are calling buildout from. This is normally the path that contains the
; file 'setup.py' for your own package.
; file 'setup.py' for your own package.
install-directory
=
../bob/build
install-directory
=
/scratch/mguenther/Bob/cmake/trunk
; Some examples for Idiap:
; Some examples for Idiap:
;install-directory = /idiap/group/torch5spro/releases/bob-1.0.2/install/linux-x86_64-release
;install-directory = /idiap/group/torch5spro/releases/bob-1.0.2/install/linux-x86_64-release
...
...
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