hysts HF staff commited on
Commit
b31249e
·
1 Parent(s): de856b7
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def process_image(image: PIL.Image.Image) -> tuple[PIL.Image.Image, list[dict]]:
55
 
56
  inputs = pose_image_processor(image, boxes=[person_boxes], return_tensors="pt").to(device)
57
 
58
- # for vitpose-plus-base checkpoint we should additionaly provide dataset_index
59
  # to specify which MOE experts to use for inference
60
  if pose_model.config.backbone_config.num_experts > 1:
61
  dataset_index = torch.tensor([0] * len(inputs["pixel_values"]))
 
55
 
56
  inputs = pose_image_processor(image, boxes=[person_boxes], return_tensors="pt").to(device)
57
 
58
+ # for vitpose-plus-base checkpoint we should additionally provide dataset_index
59
  # to specify which MOE experts to use for inference
60
  if pose_model.config.backbone_config.num_experts > 1:
61
  dataset_index = torch.tensor([0] * len(inputs["pixel_values"]))