benjiebob / smalviewer Goto Github PK
View Code? Open in Web Editor NEWPyQt5 app for viewing SMAL meshes
License: GNU General Public License v3.0
PyQt5 app for viewing SMAL meshes
License: GNU General Public License v3.0
Great work. Do you know how I could fix this?
(base) mona@mona:~/research/3danimals/SMALViewer$ python smal_viewer.py
dict_keys(['f', 'J_regressor', 'kintree_table', 'weights', 'posedirs', 'v_template', 'shapedirs'])
torch.Size([4, 3889])
Tensor J_regressor shape: torch.Size([37, 3889])
Tensor weights shape: torch.Size([3889, 33])
Tensor posedirs shape: torch.Size([3889, 3, 288])
Tensor v_template shape: torch.Size([3889, 3])
Tensor shapedirs shape: torch.Size([3889, 3, 41])
Tensor faces shape: torch.Size([7774, 3])
Traceback (most recent call last):
File "smal_viewer.py", line 13, in <module>
main()
File "smal_viewer.py", line 6, in main
main_window = pyqt_viewer.MainWindow()
File "/home/mona/research/3danimals/SMALViewer/pyqt_viewer.py", line 50, in __init__
self.setup_ui()
File "/home/mona/research/3danimals/SMALViewer/pyqt_viewer.py", line 219, in setup_ui
self.update_render()
File "/home/mona/research/3danimals/SMALViewer/pyqt_viewer.py", line 241, in update_render
rendered_images, rendered_silhouettes, rendered_joints, verts, joints_3d = self.model_renderer(self.smal_params)
File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in __call__
result = self.forward(*input, **kwargs)
File "/home/mona/research/3danimals/SMALViewer/smal/smal3d_renderer.py", line 40, in forward
batch_params['trans'])
File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in __call__
result = self.forward(*input, **kwargs)
File "/home/mona/research/3danimals/SMALViewer/SMPL/smal_torch_batch.py", line 157, in forward
R_cube_big = self.rodrigues(pose.view(-1, 1, 3)).reshape(batch_num, -1, 3, 3)
File "/home/mona/research/3danimals/SMALViewer/SMPL/smal_torch_batch.py", line 57, in rodrigues
theta = torch.norm(r + eps, dim=(1, 2), keepdim=True) # dim cannot be tuple
File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/functional.py", line 755, in norm
return torch._C._VariableFunctions.frobenius_norm(input, dim, keepdim=keepdim)
RuntimeError: Could not run 'aten::conj.out' with arguments from the 'CUDATensorId' backend. 'aten::conj.out' is only available for these backends: [CPUTensorId, VariableTensorId].
$ python
Python 3.7.6 (default, Jan 8 2020, 19:59:22)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'1.4.0'
>>> torch.version.cuda
'10.1'
>>> torch.cuda.is_available()
True
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
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.
I know that this might not be the right issue for this project. But where can I find documentation related to the usage of SMAL models?
I have the following doubts related to SMAL models:
Do I need different models for different animals?
How to identify and set different hyper-parameters to generate 3D models for various animal species?
Hello, Ask for your help. When I run python smal_viewer.py I met the error as follow:
QObject::moveToThread: Current thread (0x5636a4374280) is not the object's thread (0x5636a7396d00).
Cannot move to target thread (0x5636a4374280)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/lisicheng/anaconda3/envs/smalviewer/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
Aborted (core dumped)
I tried to reinstall pyqt5 again but useless, could you please tell me how to solve it?
(base) mona@mona:~/research/3danimals/SMALViewer$ python smal_viewer.py
dict_keys(['f', 'J_regressor', 'kintree_table', 'weights', 'posedirs', 'v_template', 'shapedirs'])
torch.Size([4, 3889])
Tensor J_regressor shape: torch.Size([37, 3889])
Tensor weights shape: torch.Size([3889, 33])
Tensor posedirs shape: torch.Size([3889, 3, 288])
Tensor v_template shape: torch.Size([3889, 3])
Tensor shapedirs shape: torch.Size([3889, 3, 41])
Tensor faces shape: torch.Size([7774, 3])
Traceback (most recent call last):
File "smal_viewer.py", line 13, in <module>
main()
File "smal_viewer.py", line 6, in main
main_window = pyqt_viewer.MainWindow()
File "/home/mona/research/3danimals/SMALViewer/pyqt_viewer.py", line 50, in __init__
self.setup_ui()
File "/home/mona/research/3danimals/SMALViewer/pyqt_viewer.py", line 219, in setup_ui
self.update_render()
File "/home/mona/research/3danimals/SMALViewer/pyqt_viewer.py", line 241, in update_render
rendered_images, rendered_silhouettes, rendered_joints, verts, joints_3d = self.model_renderer(self.smal_params)
File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/mona/research/3danimals/SMALViewer/smal/smal3d_renderer.py", line 45, in forward
rendered_joints = self.renderer.render_points(joints_3d[:, self.smal_info.include_classes])
File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 772, in __getattr__
type(self).__name__, name))
torch.nn.modules.module.ModuleAttributeError: 'Renderer' object has no attribute 'render_points'
$ python smal_viewer.py
Traceback (most recent call last):
File "smal_viewer.py", line 2, in <module>
import pyqt_viewer
File "/home/mona/research/3danimals/SMALViewer/pyqt_viewer.py", line 13, in <module>
from smal.smal3d_renderer import SMAL3DRenderer
File "/home/mona/research/3danimals/SMALViewer/smal/smal3d_renderer.py", line 6, in <module>
import neural_renderer as nr
File "/home/mona/anaconda3/lib/python3.7/site-packages/neural_renderer/__init__.py", line 3, in <module>
from .load_obj import load_obj
File "/home/mona/anaconda3/lib/python3.7/site-packages/neural_renderer/load_obj.py", line 8, in <module>
import neural_renderer.cuda.load_textures as load_textures_cuda
ImportError: /home/mona/anaconda3/lib/python3.7/site-packages/neural_renderer/cuda/load_textures.cpython-37m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass
$ python
Python 3.7.6 (default, Jan 8 2020, 19:59:22)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'1.6.0'
>>> torch.version.cuda
'10.1'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.