INNER CODE UNIT · Python

get_landmark_model

vardanagarwal/Proctoring-AI · face_landmarks.py:14

def get_landmark_model(saved_model='models/pose_model'):
    """
    Get the facial landmark model. 
    Original repository: https://github.com/yinguobing/cnn-facial-landmark

    Parameters
    ----------
    saved_model : string, optional
        Path to facial landmarks model. The default is 'models/pose_model'.

    Returns
    -------
    model : Tensorflow model
        Facial landmarks model

    """
    #model = keras.models.load_model(saved_model)
    model = tf.saved_model.load(saved_model)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…