Home

Awesome

CAFM: A 3D Morphable Model for Animals

We present Cat-like Animals Facial Model (CAFM) -- a 3D Morphable Model (3DMM) constructed from 50 samples, including lion, tiger, puma, American Shorthair, Abyssinian cat, etc. To the best of our knowledge, CAFM is the first animal morphable model ever constructed.

The constructed cat-like animal face dataset is released at Google Drive containing pairs of 2D face images with 15 landmarks and 3D face meshes with projection parameters. DATA you have downloaded includes:

FILE Introduction:

CAFM:

If you wanna generate a specific 3D mesh,

import numpy as np

meanFace = np.load("meanFace.npy")
s_i = np.load("PCA.npy")
triangles = np.load('mesh.npy')

sp = np.zeros((49, 1), dtype=np.float32)
S = meanFace.T + np.dot(s_i.T, sp) # you can set for yourself.

Matching the Morphable Model to Images

First, you should Download face3d which is a remarkable open source code.

In terminal:

>python matching_algorithm.py

Generated 3D mesh will be saved in a folder called "YOU CREATED", named "Transformed _Shape.npy".

PS.

If you have any problem, contact me ^_^.