Open sangenan opened 3 months ago
Thank you for sharing your research results. When using your dataset, I found that the annotation of the outer contour point of the left shoulder and right shoulder (the point within the blue box in the screenshot) was inconsistent with that in the paper. Is there any omission on my side? Below is the code of my annotated points. Please check it.
import cv2
import json
with open("./MPII_contour_points.json", 'r') as file:
data = json.load(file)
print(data[411])
img = cv2.imread(f"./data/mpii/images/{data[411]['img_name']}")
radius = 2
color = (0, 0, 255)
thickness = -1
x, y = data[411]['center']
cv2.circle(img, (int(x), int(y)), radius, color, thickness)
for key in data[411]['contour_keypoints']:
x, y = data[411]['contour_keypoints'][key]
cv2.circle(img, (int(x), int(y)), radius, color, thickness)
cv2.imwrite("output.jpg", img)
OK, I'm going to take a look.