LapisRaider / Object-Human-Interaction

From a monocular video, generate 3D animation and models of humans and objects interactions
1 stars 0 forks source link

V1 Able to detect collision between human and object #3

Closed LapisRaider closed 4 months ago

LapisRaider commented 4 months ago
  1. Can do a AABB check first
  2. Afterwards, use VIBE to obtain SMPL parameters and check which vertex or keypoint is the nearest to the object
  3. If there's no collision, do not attach

With this in the second iteration we just need to change the attachment offset code and the collision offset instead of fully relying on the detector

image

LapisRaider commented 4 months ago

Rendering\lib\data_utils\kp_utils.py and Rendering\lib\models\smpl.py contains the mapping

LapisRaider commented 4 months ago

We are using SPIN models, for the joint mappings. Thus, we using get_spin_joint_names()

LapisRaider commented 4 months ago

Difference between SMPL and SPIN

get_smpl_joint_names and get_spin_joint_names is different

SPIN

SMPL

LapisRaider commented 4 months ago

Can use joints2d_img_coord from the smpl pkl output file Array storing for each frame 49 keypoint, most likely SPIN's model 49 joints

LapisRaider commented 4 months ago

Pose data uses fbx_output.py bone_name_from_index

LapisRaider commented 4 months ago

SMPL joints - 23: https://www.researchgate.net/figure/Layout-of-23-joints-in-the-SMPL-models_fig2_351179264