buzhidaoshenme / YOLOX-OBB

YOLOX in DOTA with KLD loss. (Oriented Object Detection)(Rotated BBox)基于YOLOX的旋转目标检测
Apache License 2.0
75 stars 19 forks source link

ModuleNotFoundError: No module named 'DOTA_devkit_YOLO' #9

Open Best-effort opened 2 years ago

Best-effort commented 2 years ago

如题。 您好,我在运行您的代码的时候发现会提示如下错误: Traceback (most recent call last): File "tools/train.py", line 13, in from yolox.core import Trainer, launch File "/usr/local/anaconda3/lib/python3.8/site-packages/yolox-0.1.0-py3.8-linux-x86_64.egg/yolox/init.py", line 4, in from .utils import configure_module File "/usr/local/anaconda3/lib/python3.8/site-packages/yolox-0.1.0-py3.8-linux-x86_64.egg/yolox/utils/init.py", line 6, in from .boxes import * File "/usr/local/anaconda3/lib/python3.8/site-packages/yolox-0.1.0-py3.8-linux-x86_64.egg/yolox/utils/boxes.py", line 7, in from DOTA_devkit_YOLO import polyiou ModuleNotFoundError: No module named 'DOTA_devkit_YOLO'

我去yolox/utils/boxes.py中查看发现了from DOTA_devkit_YOLO import polyiou,尝试把from导入模块改成相对路径,依旧会出现这个问题? 麻烦您帮忙解答一下,万分感谢!!

buzhidaoshenme commented 2 years ago

你按照这个步骤安装过了吗 image 如果安装过了,你试一下在DOTA_devkit_YOLO下新建一个init.py文件, 然后再导入试试; 如果还不行,你参考下ResultMerge.py, 这个里面也使用了import polyiou