Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -25,7 +25,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 25 |
dtype = torch.float16 if str(device).__contains__("cuda") else torch.float32
|
| 26 |
|
| 27 |
# Load face encoder
|
| 28 |
-
face_analysis = FaceAnalysis(name="antelopev2", root="./", providers=["CPUExecutionProvider"])
|
| 29 |
face_analysis.prepare(ctx_id=0, det_size=(640, 640))
|
| 30 |
|
| 31 |
# Load models
|
|
|
|
| 25 |
dtype = torch.float16 if str(device).__contains__("cuda") else torch.float32
|
| 26 |
|
| 27 |
# Load face encoder
|
| 28 |
+
face_analysis = FaceAnalysis(name="antelopev2", root="./models", providers=["CPUExecutionProvider"])
|
| 29 |
face_analysis.prepare(ctx_id=0, det_size=(640, 640))
|
| 30 |
|
| 31 |
# Load models
|