1. 从Github上下载文件夹 mmdetection-main
2. 改解释器
3. 下载权重
mim download mmdet --config rtmdet_tiny_8xb32-300e_coco --dest .
4. 运行配置中测试
F:\mmdetection-main\demo\demo.jpg
F:\mmdetection-main\demo\rtmdet_tiny_8xb32-300e_coco.py
--weights
F:\mmdetection-main\demo\rtmdet_tiny_8xb32-300e_coco_20220902_112414-78e30dcc.pth
--show
报下面的错
点击倒数第二个报错文件
bbox_palette = get_palette(bbox_color, max_label + 1)
bbox_palette = get_palette(None, max_label + 1)
代码原本是第一行,改成第二行的样子,将bbox_color改成None
又报下面的错
在image_demo.py中加入下面两行代码
import os
os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"
这下运行出结果了
但还是有warning,我没再改,就这样了
5. 在终端命令行也测试一下
cd demo
python image_demo.py demo.jpg rtmdet_tiny_8xb32-300e_coco.py --weights rtmdet_tiny_8xb32-300e_coco_20220902_112414-78e30dcc.pth --show
也运行出结果了,就是也有warning
教程看的:官方文档开始你的第一步 — MMDetection 3.3.0 文档
MMDetection新手安装使用教程(无限踩坑)_mmdetection安装-CSDN博客
报错看的:解决AssertionError:The length of platte should not be less than ‘num_classes‘-CSDN博客
2024年6月20日,于笔记本电脑上