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

Run error #4

Closed
TopGun666 opened this issue Jul 1, 2020 · 5 comments
Closed

Run error #4

TopGun666 opened this issue Jul 1, 2020 · 5 comments

Comments

@TopGun666
Copy link

Hi Bo,

Thanks for your work. I have a question when I run python demoPoseEst.py without any modification. The other demo scripts have similar error while running.
Screenshot from 2020-07-01 16-26-38

Regards

@BoChenYS
Copy link
Owner

BoChenYS commented Jul 1, 2020

Hi, What is your torchvision version? You might be using an old VGG11 implementation in which the average pool right before the classifier layer is not adaptive. Check if that is the reason. If yes, try updating your pytorch and torchvision version.

@TopGun666
Copy link
Author

torch==1.5.0 torchvision==0.2.0

@TopGun666
Copy link
Author

I have upgraded the torchvision to 0.6.0. It works. But it has a new error.
Screenshot from 2020-07-01 17-42-01

@BoChenYS
Copy link
Owner

BoChenYS commented Jul 2, 2020

I think it is related to this issue here:
https://discuss.pytorch.org/t/backward-incompatible-changes-in-pytorch-1-5/79984

For a simple solution, just use torch 1.4 instead of 1.5 and it should work.

@TopGun666
Copy link
Author

Thanks for you reply. I used torch 1.4.0 and torchvision 0.5.0 finally. It works.

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

2 participants