You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I'm experiments on PoseC3D and trying to create some inference services to check results from skeleton keypoints.
inference_pipeline= [
dict(type='GeneratePoseTarget', with_kp=False, with_limb=True, double=False, left_kp=left_kp, right_kp=right_kp),
]
defvis_heatmaps(heatmaps, channel=-1, ratio=8):
# if channel is -1, draw all keypoints / limbs on the same mapimportmatplotlib.cmascmheatmaps= [x.transpose(1, 2, 0) forxinheatmaps]
h, w, _=heatmaps[0].shapenewh, neww=int(h*ratio), int(w*ratio)
ifchannel==-1:
heatmaps= [np.max(x, axis=-1) forxinheatmaps]
cmap=cm.viridisheatmaps= [(cmap(x)[..., :3] *255).astype(np.uint8) forxinheatmaps]
heatmaps= [cv2.resize(x, (neww, newh)) forxinheatmaps]
returnheatmaps
First, I put my input keypoints (1, 48, 17, 2) into inference pipeline which only consists of GeneratePoseTarget, then I visualize the heatmap using the functions provided in visualize_heatmap_volume.ipynb files. I found out that all of the heatmap are in horizontal instead of vertical as displayed in the picture. Is this behaviours to be expected or did I do something incorrectly?
Hello everyone
Currently, I'm experiments on PoseC3D and trying to create some inference services to check results from skeleton keypoints.
First, I put my input keypoints (1, 48, 17, 2) into inference pipeline which only consists of GeneratePoseTarget, then I visualize the heatmap using the functions provided in visualize_heatmap_volume.ipynb files. I found out that all of the heatmap are in horizontal instead of vertical as displayed in the picture. Is this behaviours to be expected or did I do something incorrectly?
I have attached the fake_anno dict that I used to test this.
https://drive.google.com/file/d/1_qCEwMjrjRhL5TOC3qAyXGIkzy-owEJS/view?usp=sharing
Any help is appreciate.
The text was updated successfully, but these errors were encountered: