windows和服务器上安装mmdet
安装mmcv安装方式https://blog.csdn.net/qc66689/article/details/160504230?spm1001.2014.3001.5501验证mmcv安装python .dev_scripts/check_installation.pywindowspip install -U openmim mim install mmdet git clone https://github.com/open-mmlab/mmdetection.git cd mmdetection mim download mmdet --config rtmdet_tiny_8xb32-300e_coco --dest . python setup.py install找到自己对应conda环境的checkpoint.pyC:\Users你的用户名\miniconda3\envs\mmdet\lib\site-packages\mmengine\runner 目录下找到 checkpoint.py修改第347行为checkpoint torch.load(filename, map_locationmap_location, weights_onlyFalse)测试python demo/image_demo.py demo/demo.jpg rtmdet_tiny_8xb32-300e_coco.py --weights rtmdet_tiny_8xb32-300e_coco_20220902_112414-78e30dcc.pth --device cuda:0服务器git clone https://github.com/open-mmlab/mmdetection.git pip install . -v --no-build-isolation mim download mmdet --config rtmdet_tiny_8xb32-300e_coco --dest .vim /home/hzq/miniconda3/envs/mmdet/lib/python3.10/site-packages/mmengine/runner/checkpoint.py # 修改第347行 checkpoint torch.load(filename, map_locationmap_location, weights_onlyFalse)python demo/image_demo.py demo/demo.jpg rtmdet_tiny_8xb32-300e_coco.py --weights rtmdet_tiny_8xb32-300e_coco_20220902_112414-78e30dcc.pth --device cuda:0