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

environment error #19

Open
Nicoleyk opened this issue Sep 21, 2024 · 6 comments
Open

environment error #19

Nicoleyk opened this issue Sep 21, 2024 · 6 comments

Comments

@Nicoleyk
Copy link

我的cuda版本是11.7,mmcv1.4版本太低,会冲突,但是安装高版本2.0.0的mmcv会报如下的错误,高版本集成方法的位置发生了变化,请问该怎么解决
image

@mousecpn
Copy link
Owner

我的cuda版本是11.7,mmcv1.4版本太低,会冲突,但是安装高版本2.0.0的mmcv会报如下的错误,高版本集成方法的位置发生了变化,请问该怎么解决 image

cuda11.7就装不了mmcv1.4了吗。。。
我也不太清楚怎么解决,我建议你慢慢从mmcv1.5 1.6 1.7慢慢往上试一试,看看哪个版本能装得上又能用的

@Nicoleyk
Copy link
Author

我解决好环境问题了,谢谢。但是在运行自己的数据集的过程中遇到了如下的错误
Uploading 1729046009167.png…
期待您的回复

@mousecpn
Copy link
Owner

图好像裂开了,看不到

@Nicoleyk
Copy link
Author

File "/home/yk/Boosting-R-CNN-master/Boosting-R-chN-master/mmdet/models/roi heads/prob roi head.py", line 143, in box forward train boost
loss bbox['loss cls'1 = self.norm loss(loss bbox['loss cls'l, label weights new, label weights new.shape[@])
File "/home/yk/Boosting-R-chN-master/Boosting-R-CNN-master/mmdet/models/roi heads/prob roi head.py", line 152, in norm lossnew weights =weights *(loss.sum()/(weights * loss).sum())
RuntimeError: The size of tensor a (2898) must match the size of tensor b (2848)at non-sineleton dimension 0

@Nicoleyk
Copy link
Author

我跑的是其他的水下数据集,在第一轮的运行过程中会报这种错

@mousecpn
Copy link
Owner

File "/home/yk/Boosting-R-CNN-master/Boosting-R-chN-master/mmdet/models/roi heads/prob roi head.py", line 143, in box forward train boost loss bbox['loss cls'1 = self.norm loss(loss bbox['loss cls'l, label weights new, label weights new.shape[@]) File "/home/yk/Boosting-R-chN-master/Boosting-R-CNN-master/mmdet/models/roi heads/prob roi head.py", line 152, in norm lossnew weights =weights *(loss.sum()/(weights * loss).sum()) RuntimeError: The size of tensor a (2898) must match the size of tensor b (2848)at non-sineleton dimension 0

你可能是类别没改,你要去dataset那里改一改类别

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