Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -175,7 +175,7 @@ def preprocess_video_pose(frames: list[np.ndarray], width: int, height: int) ->
|
|
| 175 |
result = []
|
| 176 |
for frame in frames:
|
| 177 |
pil = Image.fromarray(frame.astype(np.uint8)).convert("RGB")
|
| 178 |
-
pose_img = processor(pil, hand_and_face=
|
| 179 |
if not isinstance(pose_img, Image.Image):
|
| 180 |
pose_img = Image.fromarray(np.array(pose_img).astype(np.uint8))
|
| 181 |
pose_img = pose_img.convert("RGB").resize((width, height), Image.BILINEAR)
|
|
|
|
| 175 |
result = []
|
| 176 |
for frame in frames:
|
| 177 |
pil = Image.fromarray(frame.astype(np.uint8)).convert("RGB")
|
| 178 |
+
pose_img = processor(pil, hand_and_face=False)
|
| 179 |
if not isinstance(pose_img, Image.Image):
|
| 180 |
pose_img = Image.fromarray(np.array(pose_img).astype(np.uint8))
|
| 181 |
pose_img = pose_img.convert("RGB").resize((width, height), Image.BILINEAR)
|