mmpose icon indicating copy to clipboard operation
mmpose copied to clipboard

test diff

Open 2050airobert opened this issue 2 years ago • 5 comments

hi, 1 The occlusion keypoints (vis = 1) in the coco-wholebody dataset have participated in the training , right ? 2 If I want to exclude the occlusion keypoints (vis = 1) in the training, which code need to be improved? 3 In fact ,when testing the model below, I find it shows poor results or effect regarding to the occlusion keypoints(just like hand keypoints and feet keypoints) on my own video file. How to improve the result with the occlusion keypoints detection? Any usefull idea ? image

4 To my surprise,the points on the face shows consistent good results. Although there is a problem in detection when occlusion occurs, the detection points are still around the face, and the deviation is not very large, just as the following picture. image

The config file : configs/wholebody_2d_keypoint/topdown_heatmap/coco-wholebody/td-hm_hrnet-w48_dark-8xb32-210e_coco-wholebody-384x288.py The cpkt ; https://download.openmmlab.com/mmpose/top_down/hrnet/hrnet_w48_coco_wholebody_384x288_dark-f5726563_20200918.pth

BR

2050airobert avatar Nov 24 '22 03:11 2050airobert

Hi, thanks for using MMPose. For your questions,

  1. Yes

  2. You can change this line from

    keypoints_visible = np.minimum(1, _keypoints[..., 2] > 0)
    

    to

    keypoints_visible = np.minimum(1, _keypoints[..., 2] > 1)
    
  3. If you only want to improve the visualization results, you could increase the value of --kpt-thr to filter out the occluded joints which generally have low keypoint scores. If you want to improve the model robustness on occluded joints, some data augmentation methods (e.g. random erase) might help. Maybe @jin-s13 could provide more helpful advice.

  4. Face is more rigid than the body and hand. So models can learn the face structure and infer the invisible keypoints.

Ben-Louis avatar Nov 24 '22 04:11 Ben-Louis

@jin-s13 @Ben-Louis 1 Regarding to question 3 above ,is there detailed config or examples of augmentation methods(e.g. random erase) available ? 2 Regarding to question 3 above ,you mean the trick and detailed method for training the points of face , hand and body is the same, right?

2050airobert avatar Nov 24 '22 05:11 2050airobert

We support using albumentations, you may try it https://mmpose.readthedocs.io/en/latest/papers/techniques.html#albumentations-information-2020

jin-s13 avatar Nov 24 '22 08:11 jin-s13

tks hi, @Ben-Louis 2 Regarding to question 4 above ,you mean the trick and detailed method for training the points of face , hand and body is the same, right?

2050airobert avatar Nov 24 '22 08:11 2050airobert

Yes. In my perspective, it is a characteristic of face keypoints data and is independent of the model. But I am not sure if there is any exception.

Ben-Louis avatar Nov 24 '22 09:11 Ben-Louis

Hi, we will close this issue for now. Please feel free to reopen it if there are further questions.

ly015 avatar Feb 22 '23 20:02 ly015