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

Error when try to show the animation #1

Closed
Arthur151 opened this issue May 7, 2021 · 7 comments
Closed

Error when try to show the animation #1

Arthur151 opened this issue May 7, 2021 · 7 comments

Comments

@Arthur151
Copy link

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?

@Arthur151
Copy link
Author

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

@PeizhuoLi
Copy link
Owner

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.

@Arthur151
Copy link
Author

Arthur151 commented May 8, 2021

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~!

@PeizhuoLi
Copy link
Owner

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.

@CrossLee1
Copy link

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~

@PeizhuoLi
Copy link
Owner

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.

@CrossLee1
Copy link

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

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

No branches or pull requests

3 participants