Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,9 @@ import torch
|
|
4 |
from torchvision import transforms, utils
|
5 |
from facenet_pytorch import MTCNN
|
6 |
from torchvision.transforms.functional import to_pil_image
|
|
|
|
|
|
|
7 |
|
8 |
# Function to load the ViT model and MTCNN
|
9 |
def load_model(model_path):
|
|
|
4 |
from torchvision import transforms, utils
|
5 |
from facenet_pytorch import MTCNN
|
6 |
from torchvision.transforms.functional import to_pil_image
|
7 |
+
import cv2
|
8 |
+
import numpy as np
|
9 |
+
import io
|
10 |
|
11 |
# Function to load the ViT model and MTCNN
|
12 |
def load_model(model_path):
|