PeizhuoLi / neural-blend-shapes

An end-to-end library for automatic character rigging, skinning, and blend shapes generation, as well as a visualization tool [SIGGRAPH 2021]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when try to show the animation

Arthur151 opened this issue · comments

Great work!
When I try to visualize the animation via blender following this, an error occured.

Saved: '../demo/images/0000.png'
 Time: 00:00.28 (Saving: 00:00.25)

Traceback (most recent call last):
  File "/home/yusun/Documents/GitHub/neural-blend-shapes/blender_scripts/render_mesh.py", line 96, in <module>
    batch_render(args.obj_path)
  File "/home/yusun/Documents/GitHub/neural-blend-shapes/blender_scripts/render_mesh.py", line 56, in batch_render
    render_obj(os.path.join(dir, file))
  File "/home/yusun/Documents/GitHub/neural-blend-shapes/blender_scripts/render_mesh.py", line 42, in render_obj
    obj.select_set(True)
AttributeError: 'Object' object has no attribute 'select_set'

I am using Blender v2.91a. Any suggestion?

Another more interesting question:
Is it possible to animating the character using SMPL 72-dim pose parameters?

Hi, for the rendering part, could it be the case that the default blender command in your environment does not point to the v2.91a version? If it's the case you can try to add it to $PATH or use the full path to your blender executable file.

Regarding the pose parameters, the answer is yes. The test_pose variable here uses exactly the same pose parameters as in SMPL.

Yes, you are right. The default blender is V2.79.

It is really great to animate other characters using SMPL parameters.
Could you please provide some texture of the characters for better visualization?
Suggestion: It would be much better if there is a tool to convert the generated obj files into a single bvh/fbx file with texture.

Anyway, great work. Thanks~!

Thanks for your suggestion. We are mainly dealing with deformation so the texture is not of high priority. I guess some small tweak with the blend file and code can make it work. It's not trivial to integrate everything into FBX file. We are exploring the engineering of integrating our model into existing tools like FBX or Blender.

when I ran blender.exe -P vertex_color.py in Win10 with Blender 2.92.0, it says

`File "D:\SMPL\neural-blend-shapes-main\blender_scripts\vertex_color.py", line 95, in

bpy.context.space_data.shading.type = 'MATERIAL'

AttributeError: 'NoneType' object has no attribute 'shading' `

How to solve this. Thanks~

Thanks for your feedback. I mistakenly uploaded the unfinished vertex_color.py. You may try to pull the repo and it should work as expected. Sorry for the inconvenience. Let me know if this problem still exists.

@PeizhuoLi
works well now, thanks for your timely reply ~