zh-plus / video-to-pose3D

Convert video to 3D pose in one-key.
MIT License
646 stars 130 forks source link

Normalize/unNormalize Data #46

Open mmaGroupGitHub opened 3 years ago

mmaGroupGitHub commented 3 years ago

Could you explain and point to me in your code where you are perform normalization and unNormalization of the data.

If I just try to plot the 3D output the values are all less than 1 just trying to understand where you perform unNormalization and also what sort of preprocessing you apply to the two dimensional keypoints.

zh-plus commented 3 years ago

The 2D normalization: https://github.com/zh-plus/video-to-pose3D/blob/e271582b762f9f56b50f75f8d44cc351736d8683/videopose.py#L79

The 3D unNormalization may be performed here: https://github.com/zh-plus/video-to-pose3D/blob/e271582b762f9f56b50f75f8d44cc351736d8683/common/utils.py#L191

The 3D Normalization in the function model_pos: https://github.com/zh-plus/video-to-pose3D/blob/e271582b762f9f56b50f75f8d44cc351736d8683/common/utils.py#L189

I'm not sure what "Normalization" you said referred to. For more related information, you may search Normalization in the original videopose3D repo.

Sorry for the late response.