skhu101 / GauHuman

Code for our CVPR'2024 paper "GauHuman: Articulated Gaussian Splatting from Monocular Human Videos"
Other
285 stars 23 forks source link

dataset #2

Closed Tiandishihua closed 5 months ago

Tiandishihua commented 6 months ago

How do I make my own video dataset?

skhu101 commented 6 months ago

Hi, thanks for your interest. The following things should be prepared if you hope to reconstruct 3D humans from your custom videos. 1). Estimate the SMPL and camera parameters using the single-view-based SMPL estimation methods or video-based SMPL estimation methods, 2). Get the mask of human performers in the video. Then you can use our method to reconstruct 3D humans.

Ramseyous0109 commented 5 months ago

@skhu101 Hi, thanks for this wonderful work. I'm also interested in running GauHuman on customized datasets. I tried methods like mmhuman3d to generate SMPL parameters. However, it seems that the parameters format are quite different from those in ZJU-Mocap and MonoCap dataset(eg. size of poses). I wonder if you could give some advice on how to modify the dataset loaders or transfer the parameter format. Thanks!

skhu101 commented 5 months ago

Hi, could you show the specific difference between these two formats of SMPL parameters?

Ramseyous0109 commented 5 months ago

@skhu101 Thanks for your reply. Definitely, here are the parameter of these two formats:

For the output of the mmhuman3d model, the parameters are:

I think there are two main differences:

  1. Size of params of the body pose.
  2. It seems to me that in the datasets, the translation vector of the model is extracted from the body poses, but this process isn't done by mmhuman3d.

I'll try to modify the dataloaders myself and look forward to your further reply.

caizhongang commented 5 months ago

@Ramseyous0109 Hi, how did you run MMHuman3D to obtain the parameters?

Ramseyous0109 commented 5 months ago

@caizhongang Thanks for your reply. I just ran the demo/estimate_smpl.py.

caizhongang commented 5 months ago

@caizhongang Thanks for your reply. I just ran the demo/estimate_smpl.py.

Hi @Ramseyous0109 , the script should have output body_pose in shape (-1, 23, 3) as in this line. Can you try the following snippet:

import numpy as np
content = np.load('output.npz', allow_pickle=True)
body_pose = content['smpl'].item()['body_pose']
print(body_pose.shape)
Ramseyous0109 commented 5 months ago

@caizhongang Sorry for making this shape wrong. The shape of body_pose is actually (1,23,3). Then is there a way to transfer it into the shape needed by GauHuman?

caizhongang commented 5 months ago

@caizhongang Sorry for making this shape wrong. The shape of body_pose is actually (1,23,3). Then is there a way to transfer it into the shape needed by GauHuman?

@Ramseyous0109 , since the target shape is (1,72), my best guess is to reshape body_pose to (1, 69) and concatenate global orient (shape is (1, 3)): np.concatenate([global_orient, body_shape]), axis=-1).

Ramseyous0109 commented 5 months ago

@caizhongang Thanks so much. I'll try this way.

JiatengLiu commented 2 months ago

@Ramseyous0109 hello! Did you make the data set correctly? If so, can I expose your script? Thank you so much:>

Ramseyous0109 commented 1 month ago

@JiatengLiu Hi, I think you can just follow the steps above to match the parameter keys to generate scripts for customized dataset.

JiatengLiu commented 1 month ago

yes, I have finished it.

--------------原始邮件-------------- 发件人:"Ramseyous0109 @.>; 发送时间:2024年5月6日(星期一) 晚上6:31 收件人:"skhu101/GauHuman" @.>; 抄送:"Jett @.>;"Mention @.>; 主题:Re: [skhu101/GauHuman] dataset (Issue #2)

@JiatengLiu Hi, I think you can just follow the steps above to match the parameter keys to generate scripts for customized dataset.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>