yamildiego commited on
Commit
2cc01c8
·
1 Parent(s): 2d72542

refactor names

Browse files
handler.py CHANGED
@@ -157,13 +157,7 @@ class EndpointHandler():
157
  "depth": get_depth_map,
158
  }
159
 
160
- model_path = "./insightface/antelopev2"
161
- self.app = FaceAnalysis(root=model_path,name='antelopev2')
162
-
163
- self.app = FaceAnalysis(
164
- root=model_path,
165
- name="antelopev2",
166
- )
167
  self.app.prepare(ctx_id=0, det_size=(640, 640))
168
 
169
  def __call__(self, param):
 
157
  "depth": get_depth_map,
158
  }
159
 
160
+ self.app = FaceAnalysis(name='antelopev2')
 
 
 
 
 
 
161
  self.app.prepare(ctx_id=0, det_size=(640, 640))
162
 
163
  def __call__(self, param):
pipeline_stable_diffusion_xl_instantid_full.py CHANGED
@@ -64,8 +64,7 @@ EXAMPLE_DOC_STRING = """
64
 
65
  >>> from pipeline_stable_diffusion_xl_instantid import StableDiffusionXLInstantIDPipeline, draw_kps
66
  >>> # download 'antelopev2' under ./models
67
- >>> model_path = "./insightface/antelopev2"
68
- >>> app = FaceAnalysis(root=model_path,name='antelopev2')
69
  >>> app.prepare(ctx_id=0, det_size=(640, 640))
70
 
71
  >>> # download models under ./checkpoints
 
64
 
65
  >>> from pipeline_stable_diffusion_xl_instantid import StableDiffusionXLInstantIDPipeline, draw_kps
66
  >>> # download 'antelopev2' under ./models
67
+ = >>> app = FaceAnalysis(name='antelopev2')
 
68
  >>> app.prepare(ctx_id=0, det_size=(640, 640))
69
 
70
  >>> # download models under ./checkpoints