Edit model card

---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 API
Inference API (serverless) does not yet support adapter-transformers models for this pipeline type.

Dataset used to train Miguel46/Swap_face