Advertisement
lamiastella

'Renderer' object has no attribute 'render_points'

Sep 24th, 2020
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. How can I fix this?
  2.  
  3. ```
  4. (base) mona@mona:~/research/3danimals/SMALViewer$ python smal_viewer.py
  5. dict_keys(['f', 'J_regressor', 'kintree_table', 'weights', 'posedirs', 'v_template', 'shapedirs'])
  6. torch.Size([4, 3889])
  7. Tensor J_regressor shape: torch.Size([37, 3889])
  8. Tensor weights shape: torch.Size([3889, 33])
  9. Tensor posedirs shape: torch.Size([3889, 3, 288])
  10. Tensor v_template shape: torch.Size([3889, 3])
  11. Tensor shapedirs shape: torch.Size([3889, 3, 41])
  12. Tensor faces shape: torch.Size([7774, 3])
  13. Traceback (most recent call last):
  14. File "smal_viewer.py", line 13, in <module>
  15. main()
  16. File "smal_viewer.py", line 6, in main
  17. main_window = pyqt_viewer.MainWindow()
  18. File "/home/mona/research/3danimals/SMALViewer/pyqt_viewer.py", line 50, in __init__
  19. self.setup_ui()
  20. File "/home/mona/research/3danimals/SMALViewer/pyqt_viewer.py", line 219, in setup_ui
  21. self.update_render()
  22. File "/home/mona/research/3danimals/SMALViewer/pyqt_viewer.py", line 241, in update_render
  23. rendered_images, rendered_silhouettes, rendered_joints, verts, joints_3d = self.model_renderer(self.smal_params)
  24. File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
  25. result = self.forward(*input, **kwargs)
  26. File "/home/mona/research/3danimals/SMALViewer/smal/smal3d_renderer.py", line 45, in forward
  27. rendered_joints = self.renderer.render_points(joints_3d[:, self.smal_info.include_classes])
  28. File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 772, in __getattr__
  29. type(self).__name__, name))
  30. torch.nn.modules.module.ModuleAttributeError: 'Renderer' object has no attribute 'render_points'
  31.  
  32. ```
  33.  
  34.  
  35.  
  36. ```
  37. $ python
  38. Python 3.7.6 (default, Jan 8 2020, 19:59:22)
  39. [GCC 7.3.0] :: Anaconda, Inc. on linux
  40. Type "help", "copyright", "credits" or "license" for more information.
  41. >>> import torch
  42. >>> torch.__version__
  43. '1.6.0'
  44. >>> torch.version.cuda
  45. '10.1'
  46. >>> torch.cuda.is_available()
  47. True
  48.  
  49.  
  50. $ lsb_release -a
  51. LSB Version: core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
  52. Distributor ID: Ubuntu
  53. Description: Ubuntu 20.04.1 LTS
  54. Release: 20.04
  55. Codename: focal
  56. ```
  57.  
  58. https://github.com/benjiebob/SMALViewer/issues/4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement