class_docstr: Class that performs face alignment on images.
class_docstr_tok: ["Class","that","performs","face","alignment","on","images","."]
docstr: Creates a `FaceAligner` object from a face landmarker task bundle and the default `FaceAlignerOptions`.
  
  Note that the created `FaceAligner` instance is in image mode, for
  aligning one face on a single image input.
  
  Args:
    model_path: Path to the face landmarker task bundle.
  
  Returns:
    `FaceAligner` object that's created from the model file and the default
    `FaceAlignerOptions`.
  
  Raises:
    ValueError: If failed to create `FaceAligner` object from the provided
      file such as invalid file path.
    RuntimeError: If other types of error occurred.
docstr_tok: ["Creates","a","`","FaceAligner","`","object","from","a","face","landmarker","task","bundle","and","the","default","`","FaceAlignerOptions","`",".","Note","that","the","created","`","FaceAligner","`","instance","is","in","image","mode",",","for","aligning","one","face","on","a","single","image","input",".","Args",":","model_path",":","Path","to","the","face","landmarker","task","bundle",".","Returns",":","`","FaceAligner","`","object","that","'s","created","from","the","model","file","and","the","default","`","FaceAlignerOptions","`",".","Raises",":","ValueError",":","If","failed","to","create","`","FaceAligner","`","object","from","the","provided","file","such","as","invalid","file","path",".","RuntimeError",":","If","other","types","of","error","occurred","."]
code: def create_from_model_path(cls, model_path: str) -> "FaceAligner":
      """Creates a `FaceAligner` object from a face landmarker task bundle and the default `FaceAlignerOptions`.
  
      Note that the created `FaceAligner` instance is in image mode, for
      aligning one face on a single image input.
  
      Args:
        model_path: Path to the face landmarker task bundle.
  
      Returns:
        `FaceAligner` object that's created from the model file and the default
        `FaceAlignerOptions`.
  
      Raises:
        ValueError: If failed to create `FaceAligner` object from the provided
          file such as invalid file path.
        RuntimeError: If other types of error occurred.
      """
      base_options = _BaseOptions(model_asset_path=model_path)
      options = FaceAlignerOptions(base_options=base_options)
      return cls.create_from_options(options)
  
file_path: mediapipe/mediapipe/tasks/python/vision/face_aligner.py
imports: import dataclasses
  from typing import Optional
  from mediapipe.python import packet_creator
  from mediapipe.python import packet_getter
  from mediapipe.python._framework_bindings import image
  from mediapipe.tasks.cc.vision.face_stylizer.proto import face_stylizer_graph_options_pb2
  from mediapipe.tasks.python.core import base_options
  from mediapipe.tasks.python.core import task_info
  from mediapipe.tasks.python.core.optional_dependencies import doc_controls
  from mediapipe.tasks.python.vision.core import base_vision_task_api
  from mediapipe.tasks.python.vision.core import image_processing_options
  from mediapipe.tasks.python.vision.core import vision_task_running_mode
label_desc: Use image node_id 1 for calling the FaceAligner obj's underlying member method code with example usage: obj.create_from_model_path(cls, model_path) and returns: cls