Closed gamenerd457 closed 2 years ago
@gamenerd457 , here's actually the head/face area labels are considered as in the human representation that is helpful for target clothing deformation. Please see the paper for more details.
thanks and by the way can u explain this piece of code too.. for i in range(point_num): one_map = Image.new('L', (self.fine_width, self.fine_height)) draw = ImageDraw.Draw(one_map) pointx = pose_data[i, 0] pointy = pose_data[i, 1] if pointx > 1 and pointy > 1: draw.rectangle((pointx-r, pointy-r, pointx + r, pointy+r), 'white', 'white') pose_draw.rectangle( (pointx-r, pointy-r, pointx+r, pointy+r), 'white', 'white') one_map = self.transform(one_map) pose_map[i] = one_map[0]
@gamenerd457 , this is for drawing the heatmap image from the pose keypoints.
parse_shape = (mask_array > 0).astype(np.float32)