zycliao / skeleton-free-pose-transfer

[ECCV 2022] Skeleton-free Pose Transfer for Stylized 3D Characters
Other
187 stars 12 forks source link

how to visualize skinning weight #1

Closed kwea123 closed 2 years ago

kwea123 commented 2 years ago

How to visualize the skinning weight like Figure 3? Thank you.

zycliao commented 2 years ago

I'll add scripts for visualization soon. Basically, we used this function. The input argument score is the skinning weight and handle_pos can be set to None if you just want to visualize the skinning weight.

kwea123 commented 2 years ago

Thank you, I will try

kwea123 commented 2 years ago

I try to from utils.visualization import visualize_part, but it yields this error:

ImportError: cannot import name 'mesh_core_cython' from 'utils.render_lib' (/home/kwea123/data/qchen/workspace/skeleton-free-pose-transfer/utils/render_lib/__init__.py)

Then I go to utils.render_lib and do python setup.py install but this time this error:

error: /home/kwea123/data/qchen/workspace/skeleton-free-pose-transfer/utils/render_lib/mesh_core_cython.pyx

it seems that there is no mesh_core_cython.pyx in the folder, which is required to build

kwea123 commented 2 years ago

The current workaround is to comment out this line https://github.com/zycliao/skeleton-free-pose-transfer/blob/78249f8925fe6a5362f002a0be69d0839bfc5f07/utils/render.py#L16 and in this case Pymesh is required in order to color the mesh.

It works after these modifications

スクリーンショット 2022-08-18 12 11 42
zycliao commented 2 years ago

Good to know you worked it around. mesh_core_cython.pyx has been added in case you need it.