Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconstruct 3D poses can‘t move like input video #43

Open
wtnan2003 opened this issue Jun 7, 2021 · 4 comments
Open

Reconstruct 3D poses can‘t move like input video #43

wtnan2003 opened this issue Jun 7, 2021 · 4 comments

Comments

@wtnan2003
Copy link

animation_ted_move.1.mp4

what should I do to fix it?

Any help would be appreciated

@hujb48
Copy link

hujb48 commented Aug 4, 2021

Hi, @wtnan2003, I also have the same issue, and finally I found that there is the same situation with us in #9. Here, the author preferred to use the existing prior knowledge to design a 3D trajectory model, and you could add:
prediction[0] = revise_skes_real_time(prediction[0], re_kpts[0], width)
in gen_skes.py with the line 132-138 just like:

# Adding absolute distance to 3D poses and rebase the height
 if num_person == 2:
     prediction = revise_skes(prediction, re_kpts, valid_frames)
 elif ab_dis:
     # Calculate the trajectory
     prediction[0] = revise_skes_real_time(prediction[0], re_kpts[0], width)
     prediction[0][:, :, 2] -= np.expand_dims(np.amin(prediction[0][:, :, 2], axis=1), axis=1).repeat([17], axis=1)
 else:
     # Calculate the trajectory
     prediction[0] = revise_skes_real_time(prediction[0], re_kpts[0], width)
     prediction[0][:, :, 2] -= np.amin(prediction[0][:, :, 2])

Hope, It can be useful.
Yours, Hu.

@wtnan2003
Copy link
Author

@hujb48 Thanks!! I will have a try

@JACKYLUO1991
Copy link

@hujb48 sorry, but what is the params ratio_2d_3d? should set it to... ?

@hujb48
Copy link

hujb48 commented Aug 9, 2021

@JACKYLUO1991 Sorry, I also have no idea on this parameter, maybe just for the suitable exhibition in the coordinate system, I guess, hope you can let me know if you get the answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants