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: module 'torch' has no attribute 'maximum' #31

Closed
DanceInDark opened this issue May 14, 2022 · 3 comments
Closed

AttributeError: module 'torch' has no attribute 'maximum' #31

DanceInDark opened this issue May 14, 2022 · 3 comments

Comments

@DanceInDark
Copy link

Hi,I try to run the code bug get this error: AttributeError: module 'torch' has no attribute 'maximum'.

@yzd-v
Copy link
Owner

yzd-v commented May 15, 2022

You may change your Pytorch version or try to use torch.max().

@DanceInDark
Copy link
Author

You may change your Pytorch version or try to use torch.max().
可以放一个依赖包的版本列表吗

@yzd-v
Copy link
Owner

yzd-v commented May 16, 2022

相比于mmdetection,并不需要额外的包,能跑mmdet就能适配fgd。你的pytorch不支持torch.maximum的话,可以选择变到torch==1.7或者有这个函数的其他版本,或者修改使用torch.max()来完成

@yzd-v yzd-v closed this as completed May 17, 2022
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