Xinyu-Yi / TransPose

A real-time motion capture system that estimates poses and global translations using only 6 inertial measurement units
https://xinyu-yi.github.io/TransPose/
GNU General Public License v3.0
373 stars 72 forks source link

AttributeError: 'numpy.ndarray' object has no attribute 'toarray' #8

Closed anthonyyuan closed 2 years ago

anthonyyuan commented 2 years ago

Traceback (most recent call last): File "/home/anthony/Downloads/TransPose-main/example.py", line 15, in net = TransPoseNet().to(device) File "/home/anthony/Downloads/TransPose-main/net.py", line 47, in init m = art.ParametricModel(paths.smpl_file) File "/home/anthony/Downloads/TransPose-main/articulate/model.py", line 30, in init self._J_regressor = torch.from_numpy(data['J_regressor'].toarray()).float().to(device) AttributeError: 'numpy.ndarray' object has no attribute 'toarray'

Xinyu-Yi commented 2 years ago

Hi. Please check if you download the correct smpl model file according to the readme.