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

about rbbox_iou_loss #14

Open
mc171819 opened this issue Nov 10, 2021 · 5 comments
Open

about rbbox_iou_loss #14

mc171819 opened this issue Nov 10, 2021 · 5 comments

Comments

@mc171819
Copy link

hi, when I run 'from spconv.utils import rbbox_iou, rbbox_iou_loss' in box_np_ops.py, it occurs an error: ImportError: cannot import name 'rbbox_iou_loss'. However, when I ask the author about rrbox_iou_loss, he said there isn't any rbbox_iou_loss in spconv. So how should I modify the code?

@FANGZHENGFA
Copy link

hi, when I run 'from spconv.utils import rbbox_iou, rbbox_iou_loss' in box_np_ops.py, it occurs an error: ImportError: cannot import name 'rbbox_iou_loss'. However, when I ask the author about rrbox_iou_loss, he said there isn't any rbbox_iou_loss in spconv. So how should I modify the code?

I had same error when I run SECOND repo.
The problem may occur in spconv2.x.
I solve this problem after installing spconv1.x

@mc171819
Copy link
Author

hi, when I run 'from spconv.utils import rbbox_iou, rbbox_iou_loss' in box_np_ops.py, it occurs an error: ImportError: cannot import name 'rbbox_iou_loss'. However, when I ask the author about rrbox_iou_loss, he said there isn't any rbbox_iou_loss in spconv. So how should I modify the code?

I had same error when I run SECOND repo. The problem may occur in spconv2.x. I solve this problem after installing spconv1.x

rbbox_iou is truly can be import in spconv1.x, however i still cannot import rbbox_iou_loss in any version of spconv. How did you resolve this?

@FANGZHENGFA
Copy link

hi
I just delete 'rbbox_iou_loss'. Specifically, i change the from spconv.utils import rbbox_iou, rbbox_iou_loss to from spconv.utils import rbbox_iou in box_np_ops.py. I also comment the "riou_cc_loss" function. then it works.
Best wish to you!

@FANGZHENGFA
Copy link

By the way, my spconv version is v1.0(commit 8da6f96).

I follow this page http://nicethemes.cn/news/txtlist_i198814v.html ,then it works

@guzuoxu
Copy link

guzuoxu commented Nov 28, 2021

this help me: https://github.com/idenovix/bu_spconv
by the way, when "python setup.py bdist_wheel", there will be a error, it is because the pytorch version, you can solve it follow this: https://blog.csdn.net/baidu_34172099/article/details/109741821

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