Image-to-Video
Adapters
Avaric
Miguel46 commited on
Commit
b5dbdba
1 Parent(s): eed50d7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -3
README.md CHANGED
@@ -1,3 +1,27 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - HuggingFaceFW/fineweb-edu
5
+ language:
6
+ - av
7
+ metrics:
8
+ - character
9
+ library_name: adapter-transformers
10
+ pipeline_tag: image-to-video
11
+ ---
12
+ ---import cv2
13
+ import dlib
14
+ import numpy as np
15
+ import torch
16
+ from transformers import pipeline
17
+
18
+ # Carregar o detector de rostos
19
+ detector = dlib.get_frontal_face_detector()
20
+ predictor = dlib.shape_predictor('shape_predictor_68_face_landmarks.dat')
21
+
22
+ # Função para detectar e alinhar rostos
23
+ def detect_and_align_face(image_path):
24
+ img = cv2.imread(image_path)
25
+ gray = cv2
26
+ license: apache-2.0
27
+ ---