benjiebob / SMALViewer

PyQt5 app for viewing SMAL meshes
GNU General Public License v3.0
25 stars 5 forks source link

cannot find function "render_points" in smal3d_renderer.py #1

Closed xjsxujingsong closed 3 years ago

xjsxujingsong commented 4 years ago

Hi, I am trying to use your tool and have successuly installed all files. During running, it came to an error: in "smal3d_renderer.py", line 45, in forward rendered_joints = self.renderer.render_points(joints_3d[:, self.smal_info.include_classes]) AttributeError: 'Renderer' object has no attribute 'render_points'

I went back to https://github.com/daniilidis-group/neural_renderer and cannot find this function.

xjsxujingsong commented 4 years ago

Thank you. I can simply comment out this line to let it work. I just recently modified smalst to work in Windows and changed nmr to neural render. I will look deeper inside this function.

monajalal commented 3 years ago

@xjsxujingsong can you please guide how you exactly fixed it? I have the same exact error.

benjiebob commented 3 years ago

I will look at this now...

benjiebob commented 3 years ago

OK - it's a work in progress but I've created a new branch which uses the very latest SMAL model, and has replaced Neural Mesh Renderer with two alternative options. First, the Pyrender library is a fast OpenGL based renderer. Secondly, for differentiable rendering, I've switched to Facebook's recent PyTorch3D library, which is a bit more flexible than Neural Mesh Renderer.

I hope this helps! I'll play with this branch just a little more and then push the changes to master. Feel free to open a new issue if needed.