https://github.com/pseudomanifold/eigenfaces
Experiments with eigenfaces
https://github.com/pseudomanifold/eigenfaces
Last synced: about 2 months ago
JSON representation
Experiments with eigenfaces
- Host: GitHub
- URL: https://github.com/pseudomanifold/eigenfaces
- Owner: Pseudomanifold
- License: mit
- Created: 2015-09-13T13:32:57.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-13T13:53:09.000Z (about 10 years ago)
- Last Synced: 2025-05-15T17:10:00.403Z (5 months ago)
- Language: Python
- Size: 8.11 MB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eigenfaces
A simple script for performing eigenface analysis. Head over to [this
blog
post](http://bastian.rieck.ru/blog/posts/2015/eigenfaces_reconstruction)
for more details.# Usage
Use
$ python eigenfaces.py Data/Yale\ faces/Original 100
to perform a reconstruction using 100 randomly-selected faces with
eigensystem reductions of 95% explained variance. If you want to modify
the explained variance, use the optional `--variance` switch:$ python eigenfaces.py Data/Yale\ faces/Original 100 --variance 0.99
This results in an eigensystem that explains at least 99% of the
variance. The script will display the reconstruction (i.e. the
projection onto “face space”) on the left-hand side and the
original image on the right-hand side. Better results are generally
obtained using the `Cropped` subdirectory:$ python eigenfaces.py Data/Yale\ faces/Cropped 100
# Data
If you want even more data sets, here are some interesting ones:
- [*The Database of Faces*, AT&T Laboratories Cambridge](http://www.cl.cam.ac.uk/research/dtg/attarchive/facedatabase.html)
- [*The normalized Yale face database*](http://vismod.media.mit.edu/vismod/classes/mas622-00/datasets)