Commit
·
b6abed7
1
Parent(s):
8ee60ce
test
Browse files- handler.py +2 -3
handler.py
CHANGED
@@ -40,6 +40,7 @@ class EndpointHandler():
|
|
40 |
# root=f"./antelopev2",
|
41 |
# providers=["CPUExecutionProvider"],
|
42 |
# )
|
|
|
43 |
self.app = FaceAnalysis(
|
44 |
name="buffalo_l",
|
45 |
root="./",
|
@@ -295,7 +296,6 @@ class EndpointHandler():
|
|
295 |
]
|
296 |
|
297 |
print("Start inference...")
|
298 |
-
face_kps_test = draw_kps(pose_image, face_info['kps'])
|
299 |
|
300 |
self.generator = torch.Generator(device=device).manual_seed(42)
|
301 |
|
@@ -304,8 +304,7 @@ class EndpointHandler():
|
|
304 |
prompt=prompt,
|
305 |
negative_prompt=negative_prompt,
|
306 |
image_embeds=face_emb,
|
307 |
-
|
308 |
-
image=[face_kps_test],
|
309 |
control_mask=control_mask,
|
310 |
controlnet_conditioning_scale=self.control_scales,
|
311 |
num_inference_steps=num_inference_steps,
|
|
|
40 |
# root=f"./antelopev2",
|
41 |
# providers=["CPUExecutionProvider"],
|
42 |
# )
|
43 |
+
|
44 |
self.app = FaceAnalysis(
|
45 |
name="buffalo_l",
|
46 |
root="./",
|
|
|
296 |
]
|
297 |
|
298 |
print("Start inference...")
|
|
|
299 |
|
300 |
self.generator = torch.Generator(device=device).manual_seed(42)
|
301 |
|
|
|
304 |
prompt=prompt,
|
305 |
negative_prompt=negative_prompt,
|
306 |
image_embeds=face_emb,
|
307 |
+
image=control_images,
|
|
|
308 |
control_mask=control_mask,
|
309 |
controlnet_conditioning_scale=self.control_scales,
|
310 |
num_inference_steps=num_inference_steps,
|