---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 third-party Inference Providers, and the HF Inference API does not support adapter-transformers models with pipeline type image-to-video

Dataset used to train Miguel46/Swap_face