ViTAE-Transformer / ViTAE-Transformer-Remote-Sensing

A comprehensive list [SAMRS@NeurIPS'23, RVSA@TGRS'22, RSP@TGRS'22] of our research works related to remote sensing, including papers, codes, and citations. Note: The repo for [TGRS'22] "An Empirical Study of Remote Sensing Pretraining" has been moved to: https://github.com/ViTAE-Transformer/RSP
438 stars 53 forks source link

ModuleNotFoundError: No module named 'mmdet.version' #2

Closed ghost closed 2 years ago

ghost commented 2 years ago

Traceback (most recent call last): File "/home/dgx/workspace/cui/ViTAE/tools/train.py", line 13, in from mmdet.apis import set_random_seed, train_detector File "/home/dgx/workspace/cui/ViTAE/mmdet/init.py", line 1, in from .version import version, short_version ModuleNotFoundError: No module named 'mmdet.version'

in the mmdet/init.py, I found the code to be written like this

from .version import version, short_version

all = ['version', 'short_version']

but the .version is not the python file, in the .version file, It is only one line of code 2.2.0

DotWang commented 2 years ago

Have you installed OBBDetection? You can refer to https://github.com/jbwang1997/OBBDetection/blob/master/docs/install.md for installation. Don't forget to execute python setup.py develop

ghost commented 2 years ago

Thank you for your answer, It is true that I did not recompile the environment in this project because I compiled it in a previous project