jbwang1997 / OBBDetection

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

ImportError: cannot import name 'inference_detector_huge_image' from 'mmdet.apis' (/home/avantika/workspace/OBBDetection/mmdet/apis/__init__.py) #196

Open AbhaSinghPathania opened 10 months ago

AbhaSinghPathania commented 10 months ago

image

This error is coming when i use the following command for inference : python huge_image_demo.py demo/demo.jpg configs/obb/oriented_rcnn/faster_rcnn_orpn_r50_fpn_1x_dota10.py checkpoints/faster_rcnn_orpn_r50_fpn_1x_dota10_epoch12.pth BboxToolkit/tools/split_configs/dota1_0/ss_test.json

I am using python 3.9 and mmcv version 1.6.2 and getting this error. How can I resolve this?

fengjingchehu commented 7 months ago

请问你有解决吗?

fengjingchehu commented 7 months ago

I want to know if you have solved this problem

biubiubiu-bang commented 2 months ago

The mmdet that the author uses is the mmdet that he added and modified, not the official mmdet module. So you need to download the author's mmdet source from github and install it. I hope it helps.