linoyts HF Staff commited on
Commit
bd479f8
·
verified ·
1 Parent(s): 6ebc8a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=True)
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)