Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,11 @@ import gradio as gr
|
|
2 |
import cv2
|
3 |
from insightface.app import FaceAnalysis
|
4 |
import torch
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
app = FaceAnalysis(name="buffalo_l", providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
|
7 |
app.prepare(ctx_id=0, det_size=(640, 640))
|
|
|
2 |
import cv2
|
3 |
from insightface.app import FaceAnalysis
|
4 |
import torch
|
5 |
+
import numpy as np
|
6 |
+
|
7 |
+
np.int = np.int32
|
8 |
+
np.float = np.float64
|
9 |
+
np.bool = np.bool_
|
10 |
|
11 |
app = FaceAnalysis(name="buffalo_l", providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
|
12 |
app.prepare(ctx_id=0, det_size=(640, 640))
|