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

Visualization #1

Open
sadegh-aa opened this issue Sep 3, 2020 · 3 comments
Open

Visualization #1

sadegh-aa opened this issue Sep 3, 2020 · 3 comments

Comments

@sadegh-aa
Copy link

Hi,

Thank you for the nice work and for sharing the code. I'm playing with the code and try to evaluate your model with pretrained weights, however, when I want to visualize the result with the command you've mentioned in the readme, I get this error:

File DLow/motion_pred/utils/visualization.py", line 109, in update_video
    lines_3d[n][j-1][0].set_3d_properties([pos[j, 2], pos[j_parent, 2]], zdir='z')
  File "/home/sadegh/.local/lib/python3.6/site-packages/mpl_toolkits/mplot3d/art3d.py", line 143, in set_3d_properties
    zs = np.broadcast_to(zs, xs.shape)
AttributeError: 'list' object has no attribute 'shape'

Do you know how to fix this?

Cheers,
Sadegh

@Khrylx
Copy link
Owner

Khrylx commented Sep 3, 2020

Hi Sadegh,

Are you running this command?

python motion_pred/eval.py --cfg h36m_nsamp10 --mode vis

I'm able to run it without error. This is my matplotlib version:

# Name                    Version                   Build  Channel
matplotlib                3.0.3            py36h54f8f79_0 

Is it because we are using different versions?

@ZxyLinkstart
Copy link

嗨,

感谢您的出色工作和共享代码。我正在玩代码,并尝试使用预训练权重来评估您的模型,然而,当我想用您在readme中提到的命令可视化结果时,我收到了以下错误:

File DLow/motion_pred/utils/visualization.py", line 109, in update_video
    lines_3d[n][j-1][0].set_3d_properties([pos[j, 2], pos[j_parent, 2]], zdir='z')
  File "/home/sadegh/.local/lib/python3.6/site-packages/mpl_toolkits/mplot3d/art3d.py", line 143, in set_3d_properties
    zs = np.broadcast_to(zs, xs.shape)
AttributeError: 'list' object has no attribute 'shape'

你知道怎么解决这个问题吗?

干杯,萨迪

Hi,

Thank you for the nice work and for sharing the code. I'm playing with the code and try to evaluate your model with pretrained weights, however, when I want to visualize the result with the command you've mentioned in the readme, I get this error:

File DLow/motion_pred/utils/visualization.py", line 109, in update_video
    lines_3d[n][j-1][0].set_3d_properties([pos[j, 2], pos[j_parent, 2]], zdir='z')
  File "/home/sadegh/.local/lib/python3.6/site-packages/mpl_toolkits/mplot3d/art3d.py", line 143, in set_3d_properties
    zs = np.broadcast_to(zs, xs.shape)
AttributeError: 'list' object has no attribute 'shape'

Do you know how to fix this?

Cheers, Sadegh

I also meet this question! Have you solved the problem, please?

@ZxyLinkstart
Copy link

The question is matplotlib version ! When the version is 3.0.3, the project works correctly

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