buzhidaoshenme / YOLOX-OBB

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

ModuleNotFoundError: No module named 'yolox.data.datasets' #1

Open Murphy122 opened 3 years ago

Murphy122 commented 3 years ago

WhileI wanted to train the model, I found a problem which shows like:

ModuleNotFoundError: No module named 'yolox.data.datasets'

The version YOLOX-Main has a folder named'datasets' in 'yolox/data', but not found in this YOLOX-OBB So I think yolox-obb lacks something about the dataset folder,then I copy the folder from YOLOX-Main , but new error occurs:

ImportError: cannot import name 'DOTAOBBDetection' from 'yolox.data' (/opt/data/private/wangze/YOLOX-OBB/yolox/data/init.py)

Plase help me with my problem

Murphy122 commented 3 years ago

I wonder if the author didn't upload the relevant code. If the author sees this issue,please check and help me

liuyundong-2020 commented 3 years ago

I have the same problem:cannot import name 'DOTAOBBDetection' from 'yolox.data'

buzhidaoshenme commented 3 years ago

WhileI wanted to train the model, I found a problem which shows like:

ModuleNotFoundError: No module named 'yolox.data.datasets'

The version YOLOX-Main has a folder named'datasets' in 'yolox/data', but not found in this YOLOX-OBB So I think yolox-obb lacks something about the dataset folder,then I copy the folder from YOLOX-Main , but new error occurs:

ImportError: cannot import name 'DOTAOBBDetection' from 'yolox.data' (/opt/data/private/wangze/YOLOX-OBB/yolox/data/init.py)

Plase help me with my problem

Thank you for your attention. I forgot to modify original .gitignore when I uploaded my code, which cause no datasets in yolox/data. I re-upload yolox/data/datasets, you can try again. Contact me anytime if you have any questions.

Murphy122 commented 3 years ago

@buzhidaoshenme thanks, I'll try it!!!!!!!!!!!!!!!!! : )