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

Some hints on training with your own data #4

Open
kv2000 opened this issue Jun 14, 2024 · 5 comments
Open

Some hints on training with your own data #4

kv2000 opened this issue Jun 14, 2024 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@kv2000
Copy link
Owner

kv2000 commented Jun 14, 2024

Since our approach requires only the motion textures as input conditions, it is possible, and intuitive, to adapt it for different kinds of drivable human templates.

Assume that you have a skinned/drivable template mesh with a UV paradigm.
Since we have provided the tools in the training dataloader, that render the info attached on the vertexes to the textures, it would be intuitive to adapt it for training on other drivable human models with the following ingredients:

  • The Canonical-pose vertex Position (referring to cached_ret_canonical_delta.pkl)
  • The Posed vertex Position (referring to cached_ret_posed_delta.pkl)
  • The Posed vertex Normal (referring to cached_temp_vert_normal.pkl)
  • The Rotation and translation quaternions for each vertex (referring to cached_fin_rotation_quad.pkl, cached_fin_translation_quad.pkl)
  • The Joint positions (referring to cached_joints.pkl)
@kv2000 kv2000 added the documentation Improvements or additions to documentation label Jun 14, 2024
@kv2000 kv2000 pinned this issue Jun 14, 2024
@kv2000 kv2000 self-assigned this Jun 14, 2024
@kv2000 kv2000 changed the title Some hints on training on your own data Some hints on training with your own data Jun 14, 2024
@Yi-Cheng0101
Copy link

Hi, as you mentioned above, there are five files we need to prepare before training. Could you provide how you preprocess your original videos and use what kind of tools to get these five files. Thanks!

@hua-zi
Copy link

hua-zi commented Jul 14, 2024

Maybe ASH_Train_Dataset.get_precomputed_human() in models/dataset_no_charactor_train.py can generate these files.

@hua-zi
Copy link

hua-zi commented Jul 14, 2024

Hello, I'm interested in training ASH using my own multi-view video data. Could you please guide me on how to get these files similar to Subject0022_train.conf for my dataset? Thanks!

character{
    skeleton_dir =./meta_data/mydataset/ddc.skeleton                      # skeleton file
    skinning_dir =./meta_data/mydataset/ddc.skin                          # the skinning weights
    template_mesh_dir =./meta_data/mydataset/ddc.obj                      # the template meshes 
    graph_dir = ./meta_data/mydataset/ddc_graph.obj                       # the embedded graph, which is a lower res ones
    rest_pose_dir = ./meta_data/mydataset/ddc.motion                      # the rest pose 
    ...
    hand_mask_dir = ./meta_data/mydataset/hand_segmentation.txt           # for Dynacap Dataset characters we comment out this entry ;D 
}
dataset {
    ...
    # dofs
    skeleton_angles = ./meta_data/mydataset/skeletoolToGTPose/poseAngles.motion
    # rotation, and translation normalized dof; of (n, n-1, n-2 th frame) w.r.t the nth frame :D
    skeleton_angles_rotation_normalized = ./meta_data/mydataset/skeletoolToGTPose/poseAnglesRotationNormalized.motion
    ...
}

@Yi-Cheng0101
Copy link

Maybe ASH_Train_Dataset.get_precomputed_human() in models/dataset_no_charactor_train.py can generate these files.

Thanks! And do you know here I place my custom video and the command to run this?

@moqiyinlun
Copy link

But how can I get the "Subject0022/ddc.skin", "Subject0022/ddc.skeleton", "Subject0022/ddc.obj", "Subject0022/skeletoolToGTPose/poseAnglesRotationNormalized.motion", "Subject0022/skeletoolToGTPose/poseAngles.motion" for my own dataset, since I carefully reviewed the code and realized that generating those five cache files you mentioned requires the preparation of skeleton information in advance?

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

No branches or pull requests

4 participants