---import cv2 import dlib import numpy as np import torch from transformers import pipeline

Carregar o detector de rostos

detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor('shape_predictor_68_face_landmarks.dat')

Função para detectar e alinhar rostos

def detect_and_align_face(image_path): img = cv2.imread(image_path) gray = cv2 license: apache-2.0

Downloads last month
0
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The HF Inference API does not support image-to-video models for adapter-transformers library.

Dataset used to train Miguel46/Swap_face