jbwang1997 / OBBDetection

OBBDetection is an oriented object detection library, which is based on MMdetection.
Apache License 2.0
519 stars 111 forks source link

显示OrientedRCNN is not in the models registry' #175

Open myheal000 opened 1 year ago

myheal000 commented 1 year ago

训练的指令·是python tools/train.py configs/obb/oriented_rcnn/faster_rcnn_orpn_r50_fpn_1x_dota10.py,小白,请问哪里出现了问题,其中mmdet/detectors/init.py文件中all列表中已经加入了OrientedRCNN

abc1035 commented 1 year ago

感觉是没有正确的安装,我之前也遇到过,重装一次后好了

myheal000 commented 1 year ago

感觉是没有正确的安装,我之前也遇到过,重装一次后好了

OrientedRCNN这个模型的话不是原始存在的模型,是作者自己建立的模型,我的环境跑原始的模型时没有问题的。

abc1035 commented 1 year ago

检查一下系统cuda的版本和pytorch,mmcv的版本是否统一,环境中是否预装过mmdet,我就是这么弄跑起来的,OrientedRCNN也能跑

myheal000 commented 1 year ago

你好,我的是windows平台,我看了我的mmcv和mmdet版本是对应的,mmcv和pytorrch和cudn版本也对应,我大概知道报错原因是我的mmdet是从镜像源下载来的所以显示OrientedRCNN is not in the models registry,但是我自己重新配置环境的时候,下载作者的mmdet时运行python setup.py develop 会报error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit code 1120,请问你知道是什么原因吗

abc1035 commented 1 year ago

python setup.py develop的时候会编译很多作者的C++和cuda代码,应该就是cuda和C++编译器有问题,这个我也不知道该怎么解决。我的是Ubuntu系统,编译的时候没有遇到这种问题。

myheal000 commented 1 year ago

兄弟,我想问问你,你服务器的具体配置是什么

abc1035 commented 1 year ago

2022-09-13 21:27:15,185 - mmdet - INFO - Environment info:

sys.platform: linux Python: 3.7.11 (default, Jul 27 2021, 14:32:16) [GCC 7.5.0] CUDA available: True CUDA_HOME: /usr/local/cuda-11.3 NVCC: Build cuda_11.3.r11.3/compiler.29745058_0 GPU 0: NVIDIA GeForce RTX 3090 GCC: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 PyTorch: 1.10.1+cu113 PyTorch compiling details: PyTorch built with:

TorchVision: 0.11.2+cu113 OpenCV: 4.5.5 MMCV: 1.5.3 MMDetection: 2.2.0+0529d42 MMDetection Compiler: GCC 9.4 MMDetection CUDA Compiler: 11.3

2022-09-16 03:35:03,167 - mmdet - INFO - Environment info:

sys.platform: linux Python: 3.7.13 (default, Mar 29 2022, 02:18:16) [GCC 7.5.0] CUDA available: True CUDA_HOME: /usr/local/cuda-10.2 NVCC: Cuda compilation tools, release 10.2, V10.2.89 GPU 0: GeForce RTX 2080 Ti GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 PyTorch: 1.7.0 PyTorch compiling details: PyTorch built with:

TorchVision: 0.8.0 OpenCV: 4.6.0 MMCV: 1.5.3 MMDetection: 2.2.0+0529d42 MMDetection Compiler: GCC 7.5 MMDetection CUDA Compiler: 10.2

一个是基于cuda11.3的一个是10.2的,你看一下