Skip to content

Instantly share code, notes, and snippets.

@RyotaBannai
Created December 19, 2018 18:07
Show Gist options
  • Save RyotaBannai/2543abba7900ba317f20e6a748d317d9 to your computer and use it in GitHub Desktop.
Save RyotaBannai/2543abba7900ba317f20e6a748d317d9 to your computer and use it in GitHub Desktop.
U, s, Vt = LA.svd(face_data, full_matrices=False)
S = np.diag(s)
#U: 500 *500, S: 500 *500, Vt:500 *2914
dim = 100
US = U[:, 0:dim].dot(S[0:dim, 0:dim])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment