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
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2590658.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!