报错
Closed this issue · 2 comments
GisRookie commented
from mmrotate.ops.chamfer_2d import chamfer_2d
File "/home/gs/anaconda3/envs/torch/lib/python3.7/site-packages/mmrotate/ops/chamfer_2d/init.py", line 1, in
from .dist_chamfer_2d import chamfer_2d
File "/home/gs/anaconda3/envs/torch/lib/python3.7/site-packages/mmrotate/ops/chamfer_2d/dist_chamfer_2d.py", line 5, in
from . import chamfer_2d
ImportError: cannot import name 'chamfer_2d' from 'mmrotate.ops.chamfer_2d' (/home/gs/anaconda3/envs/torch/lib/python3.7/site-packages/mmrotate/ops/chamfer_2d/init.py)
请问这个from . import chamfer_2d是从哪里导入的,跟源码不太一样。以及我这个报错有什么解决方法吗?
LiWentomng commented
你好,关于mmrotate
框架下的实现,需要等一下mmcv将chamfer distance
cuda算子集成进去。 目前该算子正在提交Pull request过程中,预计mmcv下一个版本会集成。到时mmrotate框架下的代码才能正常使用。
GisRookie commented
好的谢谢