ONNX
Jacobmadwed commited on
Commit
247c10b
·
verified ·
1 Parent(s): d16e4c8

Update handler.py

Browse files
Files changed (1) hide show
  1. 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