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

AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' #11

Open
lixunhui opened this issue Dec 21, 2022 · 4 comments

Comments

@lixunhui
Copy link

运行出现这个问题
AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

@owo12321
Copy link
Owner

运行出现这个问题 AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

安装1.7.0版本的torch和0.8.1版本的torchvision

@lixunhui
Copy link
Author

torch

torch 1.13.1
torchvision 0.14.1

@owo12321
Copy link
Owner

torch

torch 1.13.1 torchvision 0.14.1

版本高了,装低版本的

@owo12321
Copy link
Owner

torch

torch 1.13.1 torchvision 0.14.1

或者参考这个https://blog.csdn.net/qq_40280673/article/details/125095353

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