Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
8ddce9c
1
Parent(s):
e60abae
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,7 @@
|
|
1 |
-
import cv2
|
2 |
-
from insightface.app import FaceAnalysis
|
3 |
import torch
|
4 |
from diffusers import StableDiffusionPipeline, DDIMScheduler, AutoencoderKL
|
5 |
-
from PIL import Image
|
6 |
from ip_adapter.ip_adapter_faceid import IPAdapterFaceID
|
|
|
7 |
|
8 |
app = FaceAnalysis(name="buffalo_l", providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
|
9 |
app.prepare(ctx_id=0, det_size=(640, 640))
|
|
|
|
|
|
|
1 |
import torch
|
2 |
from diffusers import StableDiffusionPipeline, DDIMScheduler, AutoencoderKL
|
|
|
3 |
from ip_adapter.ip_adapter_faceid import IPAdapterFaceID
|
4 |
+
from insightface.app import FaceAnalysis
|
5 |
|
6 |
app = FaceAnalysis(name="buffalo_l", providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
|
7 |
app.prepare(ctx_id=0, det_size=(640, 640))
|