Spaces:
Running
on
Zero
Running
on
Zero
Fix typo
Browse files
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
|
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"]))
|