Commit
·
8ee60ce
1
Parent(s):
411a1fc
face_kps_test
Browse files- handler.py +3 -1
handler.py
CHANGED
|
@@ -295,6 +295,7 @@ class EndpointHandler():
|
|
| 295 |
]
|
| 296 |
|
| 297 |
print("Start inference...")
|
|
|
|
| 298 |
|
| 299 |
self.generator = torch.Generator(device=device).manual_seed(42)
|
| 300 |
|
|
@@ -303,7 +304,8 @@ class EndpointHandler():
|
|
| 303 |
prompt=prompt,
|
| 304 |
negative_prompt=negative_prompt,
|
| 305 |
image_embeds=face_emb,
|
| 306 |
-
image=control_images,
|
|
|
|
| 307 |
control_mask=control_mask,
|
| 308 |
controlnet_conditioning_scale=self.control_scales,
|
| 309 |
num_inference_steps=num_inference_steps,
|
|
|
|
| 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 |
prompt=prompt,
|
| 305 |
negative_prompt=negative_prompt,
|
| 306 |
image_embeds=face_emb,
|
| 307 |
+
# image=control_images,
|
| 308 |
+
image=[face_kps_test],
|
| 309 |
control_mask=control_mask,
|
| 310 |
controlnet_conditioning_scale=self.control_scales,
|
| 311 |
num_inference_steps=num_inference_steps,
|