zhenyuw16 / UniDetector

Code release for our CVPR 2023 paper "Detecting Everything in the Open World: Towards Universal Object Detection".
Apache License 2.0
526 stars 24 forks source link

environment error #7

Open Joker-Y1 opened 1 year ago

Joker-Y1 commented 1 year ago

Hello, thanks for the great work! But when I create an environment following https://github.com/open-mmlab/mmdetection/blob/v2.18.0/docs/get_started.md for training, the import error has came. 1 OS: Linux CUDA: 11.7 pytorch: 1.13

zhenyuw16 commented 1 year ago

Perhaps this is because the error of mmcv. You should follow the instructions of mmdetection to install the correct version of mmcv. The version of mmcv should also match your pytorch version.

Kegard commented 1 year ago

I hava meet the same problem too, and I have tride changed the version but failed, because it will raise other error, can you tell me the version of mmcv, mmcv-full, and mmdet?

Kegard commented 1 year ago

I have solved the problem. the environment as follow: mmcv-full 1.3.14 mmdet 2.18.0 numpy 1.23.5 Don't install the mmcv >=2.0.0 and the numpy <1.24.0 is better.

LXXIANG12 commented 11 months ago

I have solved the problem. the environment as follow: mmcv-full 1.3.14 mmdet 2.18.0 numpy 1.23.5 Don't install the mmcv >=2.0.0 and the numpy <1.24.0 is better. May I ask if you encountered 'FasterRCNN: 'CLIPResNet is not in the models registry' while running 'bash tools/dist_train.sh configs/singledataset/clip_end2end_faster_rcnn_r50_c4_1x_coco.py 8 --cfg-options load_from=regionclip_pretrained-cc_rn50_mmdet.pth' in this environment?"

Kegard commented 10 months ago

you can pip unistall mmdet and try python setup.py develop