Understanding Faces Computational Photography

Slides:



Advertisements
Similar presentations
EigenFaces and EigenPatches Useful model of variation in a region –Region must be fixed shape (eg rectangle) Developed for face recognition Generalised.
Advertisements

Machine Learning Lecture 8 Data Processing and Representation
Figure-centric averages Antonio Torralba & Aude Oliva (2002) Averages: Hundreds of images containing a person are averaged to reveal regularities in the.
As applied to face recognition.  Detection vs. Recognition.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #20.
Lecture 5 Template matching
Face Recognition and Feature Subspaces
Dimensionality Reduction Chapter 3 (Duda et al.) – Section 3.8
© 2003 by Davi GeigerComputer Vision September 2003 L1.1 Face Recognition Recognized Person Face Recognition.
Data-driven Methods: Faces : Computational Photography Alexei Efros, CMU, Fall 2007 Portrait of Piotr Gibas © Joaquin Rosales Gomez.
Face detection and recognition Many slides adapted from K. Grauman and D. Lowe.
Face Recognition using PCA (Eigenfaces) and LDA (Fisherfaces)
Object Recognition: History and Overview Slides adapted from Fei-Fei Li, Rob Fergus, Antonio Torralba, and Jean Ponce.
Project 4 out today –help session today –photo session today Project 2 winners Announcements.
Computer Vision I Instructor: Prof. Ko Nishino. Today How do we recognize objects in images?
Face Collections : Rendering and Image Processing Alexei Efros.
Smart Traveller with Visual Translator for OCR and Face Recognition LYU0203 FYP.
Project 2 due today Project 3 out today –help session today Announcements.
Face Detection and Recognition
Face Detection and Recognition Readings: Ch 8: Sec 4.4, Ch 14: Sec 4.4
CS 485/685 Computer Vision Face Recognition Using Principal Components Analysis (PCA) M. Turk, A. Pentland, "Eigenfaces for Recognition", Journal of Cognitive.
So far focused on 3D modeling
Dimensionality Reduction: Principal Components Analysis Optional Reading: Smith, A Tutorial on Principal Components Analysis (linked to class webpage)
Recognition Part II Ali Farhadi CSE 455.
Face Recognition and Feature Subspaces
Last tuesday, you talked about active shape models Data set of 1,500 hand-labeled faces 20 facial features (eyes, eye brows, nose, mouth, chin) Train 40.
Face Recognition and Feature Subspaces
Face Detection and Recognition Computational Photography Derek Hoiem, University of Illinois Lecture by Kevin Karsch 12/3/13 Chuck Close, self portrait.
Internet-scale Imagery for Graphics and Vision James Hays cs195g Computational Photography Brown University, Spring 2010.
1 Recognition by Appearance Appearance-based recognition is a competing paradigm to features and alignment. No features are extracted! Images are represented.
Window-based models for generic object detection Mei-Chen Yeh 04/24/2012.
Face detection Slides adapted Grauman & Liebe’s tutorial
PCA explained within the context of Face Recognition Berrin Yanikoglu FENS Computer Science & Engineering Sabancı University Updated Dec Some slides.
Object Recognition in Images Slides originally created by Bernd Heisele.
Classification Course web page: vision.cis.udel.edu/~cv May 12, 2003  Lecture 33.
Face Recognition: An Introduction
CSE 185 Introduction to Computer Vision Face Recognition.
The Viola/Jones Face Detector A “paradigmatic” method for real-time object detection Training is slow, but detection is very fast Key ideas Integral images.
Understanding Faces 12/1/15 Some slides from Amin Sadeghi, Lana Lazebnik, Silvio Savarese, Fei-Fei Li Chuck Close, self portrait Lucas by Chuck Close Detection,
Data-driven Methods: Faces : Computational Photography Alexei Efros, CMU, Fall 2012 Portrait of Piotr Gibas © Joaquin Rosales Gomez.
Supervisor: Nakhmani Arie Semester: Winter 2007 Target Recognition Harmatz Isca.
Lecture 15: Eigenfaces CS6670: Computer Vision Noah Snavely.
CS 691B Computational Photography Instructor: Gianfranco Doretto Data Driven Methods: Faces.
Point Distribution Models Active Appearance Models Compilation based on: Dhruv Batra ECE CMU Tim Cootes Machester.
CS 2750: Machine Learning Dimensionality Reduction Prof. Adriana Kovashka University of Pittsburgh January 27, 2016.
Recognition Readings – C. Bishop, “Neural Networks for Pattern Recognition”, Oxford University Press, 1998, Chapter 1. – Szeliski, Chapter (eigenfaces)
Face Recognition and Feature Subspaces Devi Parikh Virginia Tech 11/05/15 Slides borrowed from Derek Hoiem, who borrowed some slides from Lana Lazebnik,
Face detection and recognition Many slides adapted from K. Grauman and D. Lowe.
Face Detection and Recognition Readings: Ch 8: Sec 4.4, Ch 14: Sec 4.4
University of Ioannina
Recognition with Expression Variations
Data-driven Methods: Faces
Detection, Recognition, and Transformation of Faces
CS 2750: Machine Learning Dimensionality Reduction
Face Recognition and Feature Subspaces
Recognition: Face Recognition
Data-driven Methods: Faces
In summary C1={skin} C2={~skin} Given x=[R,G,B], is it skin or ~skin?
Object Modeling with Layers
Computational Photography
Brief Review of Recognition + Context
PCA is “an orthogonal linear transformation that transfers the data to a new coordinate system such that the greatest variance by any projection of the.
CS4670: Intro to Computer Vision
CS4670: Intro to Computer Vision
Announcements Project 2 artifacts Project 3 due Thursday night
Announcements Project 4 out today Project 2 winners help session today
Announcements Artifact due Thursday
Face/Flesh Detection and Face Recognition
Announcements Artifact due Thursday
The “Margaret Thatcher Illusion”, by Peter Thompson
Presentation transcript:

Understanding Faces Computational Photography 12/2/14 Computational Photography Derek Hoiem, University of Illinois Lecture by Amin Sadeghi Some slides from Lana Lazebnik, Silvio Savarese, Fei-Fei Li

Face detection and recognition “Sally”

Applications of Face Recognition Album organization Digital photography

Face Detection

How to find faces anywhere in an image? Filter Image with a face?

Train a Filter Normalize mean and standard deviation SVM

Face detection: sliding windows … Filter/Template Multiple scales

What features? Intensity Patterns (with NNs) (Rowely Baluja Kanade1996) Exemplars (Sung Poggio 1994) Edge (Wavelet) Pyramids (Schneiderman Kanade 1998) Haar Filters (Viola Jones 2000)

How to classify? Many ways Neural networks Adaboost SVMs Nearest neighbor

What makes face detection hard? Expression

What makes face detection hard? Viewpoint

What makes face detection hard? Occlusion

What makes face detection hard? Distracting background

Consumer application: iPhoto 2009 http://www.apple.com/ilife/iphoto/

Consumer application: iPhoto 2009 Things iPhoto thinks are faces

Face Recognition

Face recognition 1. Detect 2. Align 3. Represent 4. Classify

Simple technique Treat pixels as a vector Recognize face by nearest neighbor

DeepFace 3D Alignment Deep Learning

Morphing and Alignment

Figure-centric averages Another usage is to show a significant trend. ----- Meeting Notes (10/4/11 17:12) ----- Aligned through translation and scale average 21 Figure-centric averages Need to Align Position Scale Orientation Antonio Torralba & Aude Oliva (2002) Averages: Hundreds of images containing a person are averaged to reveal regularities in the intensity patterns across all the images.

How do we average faces? http://www2.imm.dtu.dk/~aam/datasets/datasets.html

Morphing image #1 image #2 warp warp morphing

Cross-Dissolve vs. Morphing Average of Appearance Vectors ----- Meeting Notes (10/4/11 17:12) ----- the demo http://www.faceresearch.org/demos/vector Average of Shape Vectors Images from James Hays

Aligning Faces Need to Align Position Scale Orientation Key-points The more key-points the finer alignment Images from Alyosha Efros

Average of two Faces Input face key-points Pairwise Average key-point co-ordinates Triangulate the faces Warp: Transform every face triangle Average The pixels

Average of multiple Face 1. Warp to mean shape 2. Average pixels http://www.faceresearch.org/demos/average http://graphics.cs.cmu.edu/courses/15-463/2004_fall/www/handins/brh/final/

Appearance Vectors vs. Shape Vectors Vector of 200*150*3 Dimensions Requires Annotation Provides alignment! Complements 200*150 pixels (RGB) You can think about faces in different ways. You can represent this way or that way. These are complements. Shape Vector Vector of 43*2 Dimensions 43 coordinates (x,y)

Average Men of the world

Average Women of the world You will notice that women from every place is very attractive because the …..

Subpopulation means Other Examples: Average female Average kid Average Kids Happy Males Etc. http://www.faceresearch.org Average female We might be curious what different populations of faces look like. Average kid Average happy male Average male

Eigen-face

Eigenfaces example Training images x1,…,xN

PCA General dimensionality reduction technique Preserves most of variance with a much more compact representation Lower storage requirements (eigenvectors + a few numbers per face) Faster matching What are the problems for face recognition?

Principal Component Analysis Given a point set , in an M-dim space, PCA finds a basis such that coefficients of the point set in that basis are uncorrelated The most variation is in the first basis vector, then second, … The goal of PCA is to find orthogonal vectors that the first r vectors have the highest variance of all. ----- Meeting Notes (10/4/11 17:12) ----- Write it more mathematically say what PCA is solving x1 x0 1st principal component 2nd principal component

PCA in MATLAB x=rand(3,10);%10 3D examples M=mean(x,2); x2=x-repmat(M,[1 n]); covariance=x2*x2'; [U E] = eig(covariance) U = 0.74 0.07 -0.66 0.65 0.10 0.74 -0.12 0.99 -0.02 E = 0.27 0 0 0 0.63 0 0 0 0.94

Principal Component Analysis Continued… first r < M basis vectors provide an approximate basis that minimizes the mean-squared-error (MSE) in the approximation (over all bases with dimension r) Choosing subspace dimension r: look at decay of the eigenvalues as a function of r Larger r means lower expected error in the subspace data approximation r M 1 eigenvalues

Top eigenvectors: u1,…uk Eigenfaces example Top eigenvectors: u1,…uk

Face Space How to find a set of directions to cover all space? We call these directions Basis If number of basis faces is large enough to span the face subspace: Any new face can be represented as a linear combination of basis vectors.

Limitations Global appearance method: not robust to misalignment, background variation

Use Shape information 200*150 pixels (RGB) 43 coordinates (x,y) Appearance Vector 200*150 pixels (RGB) You can think about faces in different ways. You can represent this way or that way. These are complements. Shape Vector 43 coordinates (x,y)

First 3 Shape Basis Mean appearance ----- Meeting Notes (10/4/11 17:12) ----- show both extremes http://graphics.cs.cmu.edu/courses/15-463/2004_fall/www/handins/brh/final/

Manipulating faces How can we make a face look more female/male, young/old, happy/sad, etc.? http://www.faceresearch.org/demos/transform Current face Prototype 2 Prototype 1 ----- Meeting Notes (10/4/11 17:24) ----- Add a matlab thing to show the differences. show how to use PCA in matlab.

Manipulating faces We can imagine various meaningful directions. Sad Masculine Current face Feminine Happy

Psychological Attributes

Human Perception

Prince Charles, Woody Allen, Bill Clinton, Saddam Hussein, Richard Nixon and Princess Diana

Jim Carrey (left) and Kevin Costner

Nixon and Winona Ryder

Which face is more attractive? ----- Meeting Notes (10/4/11 17:12) ----- The goal is to keep the same person but more attractice. beautified original

System Overview

Things to remember Face Detection Face Recognition Appearance Vector Shape Vector Face Transformation Principal Component Analysis A good way to represent faces is not just the intesities of images, we can also use shape and …. To show the variation, we can use exemplars, or we can use various directions to be able to represent faces with a few vectors