salma-remyx
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -32,3 +32,54 @@ processing_description: Filtered missing body keypoint annotations, reformatted
|
|
32 |
source_datasets:
|
33 |
- extended
|
34 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
source_datasets:
|
33 |
- extended
|
34 |
---
|
35 |
+
|
36 |
+
![image/webp](https://cdn-uploads.huggingface.co/production/uploads/647777304ae93470ffc28913/kZIoNBVWOVhXnJVvDu1HH.webp)
|
37 |
+
|
38 |
+
# Dataset Card for the PoseText Dataset
|
39 |
+
|
40 |
+
The PoseText Dataset can be used to enhance vision-language model performance in the task of human pose estimation.
|
41 |
+
|
42 |
+
## Dataset Details
|
43 |
+
|
44 |
+
### Dataset Description
|
45 |
+
|
46 |
+
Parsing body keypoints from the [Voxel51/MPII_Human_Pose_Dataset](https://huggingface.co/datasets/Voxel51/MPII_Human_Pose_Dataset), parsing into a text-based format used in [Molmo](https://huggingface.co/allenai/Molmo-7B-O-0924/discussions/1)
|
47 |
+
|
48 |
+
```python
|
49 |
+
import re
|
50 |
+
import numpy as np
|
51 |
+
|
52 |
+
def extract_points(molmo_output, image_w, image_h):
|
53 |
+
all_points = []
|
54 |
+
for match in re.finditer(r'x\d*="\s*([0-9]+(?:\.[0-9]+)?)"\s+y\d*="\s*([0-9]+(?:\.[0-9]+)?)"', molmo_output):
|
55 |
+
try:
|
56 |
+
point = [float(match.group(i)) for i in range(1, 3)]
|
57 |
+
except ValueError:
|
58 |
+
pass
|
59 |
+
else:
|
60 |
+
point = np.array(point)
|
61 |
+
if np.max(point) > 100:
|
62 |
+
# Treat as an invalid output
|
63 |
+
continue
|
64 |
+
point /= 100.0
|
65 |
+
point = point * np.array([image_w, image_h])
|
66 |
+
all_points.append(point)
|
67 |
+
return all_points
|
68 |
+
```
|
69 |
+
|
70 |
+
- **Curated by:** [remyx.ai]
|
71 |
+
- **Language(s) (NLP):** [en]
|
72 |
+
|
73 |
+
## Citation
|
74 |
+
If you found this resource useful, please consider citing:
|
75 |
+
```
|
76 |
+
@misc{posetext2024,
|
77 |
+
title={PoseText},
|
78 |
+
author={Terry Rodriguez and Salma Mayorquin},
|
79 |
+
organization={Remyx AI},
|
80 |
+
year={2024},
|
81 |
+
month={September},
|
82 |
+
note = {Dataset},
|
83 |
+
url = {https://huggingface.co/datasets/salma-remyx/PoseText}
|
84 |
+
}
|
85 |
+
```
|