yamildiego commited on
Commit
1f3c1e1
·
1 Parent(s): 4f37825
Files changed (1) hide show
  1. handler.py +1 -2
handler.py CHANGED
@@ -30,10 +30,9 @@ class EndpointHandler():
30
  def __init__(self, model_dir):
31
 
32
  print("Loading FaceAnalysis", model_dir)
33
- self.app = FaceAnalysis(name="antelopev2", root="/repository/models/antelopev2", providers=["CPUExecutionProvider"])
34
  self.app.prepare(ctx_id=0, det_size=(640, 640))
35
 
36
-
37
  openpose = OpenposeDetector.from_pretrained("lllyasviel/ControlNet")
38
  # depth_anything = DepthAnything.from_pretrained('LiheYoung/depth_anything_vitl14').to(device).eval()
39
 
 
30
  def __init__(self, model_dir):
31
 
32
  print("Loading FaceAnalysis", model_dir)
33
+ self.app = FaceAnalysis(name="antelopev2", root="/repository/antelopev2", providers=["CPUExecutionProvider"])
34
  self.app.prepare(ctx_id=0, det_size=(640, 640))
35
 
 
36
  openpose = OpenposeDetector.from_pretrained("lllyasviel/ControlNet")
37
  # depth_anything = DepthAnything.from_pretrained('LiheYoung/depth_anything_vitl14').to(device).eval()
38