centos6.3 网站开发,嵊州市网站建设,答辩ppt模板下载免费完整版,郑州做网站经开区安装了两天#xff0c;最后终于成功#xff0c;这里有一些注意事项#xff0c;版本对应啥的#xff1a;
这里是mmdetection与MMCV的版本对应关系#xff1a; mmdet与mmcv的版本对应有一些包因为版本问题直接pip下载不了#xff0c;这里直接跑到官网去复制下载命令#…安装了两天最后终于成功这里有一些注意事项版本对应啥的
这里是mmdetection与MMCV的版本对应关系 mmdet与mmcv的版本对应有一些包因为版本问题直接pip下载不了这里直接跑到官网去复制下载命令这个链接是cuda、pytorch、MMCV版本的对照下载命令非常方便我感觉用这一条命令就足够了 link 下面是我的运行步骤使用过的命令我的linux驱动是11.2的然而我下载的是11.0的 1、
conda create -n mmdetection1 python3.72、
conda activate mmdetection1
3、
conda install pytorch1.7.0 torchvision0.8.0 torchaudio0.7.0 cudatoolkit11.0 -c pytorch4、
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7.0/index.htm5、
pip install mmdet -i https://pypi.tuna.tsinghua.edu.cn/simple
6、
pip install mmengine7、
pip install pip install mmcv2.0.0rc4 -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7/index.html8、验证 下载模型
mim download mmdet --config yolof_r50_c5_8x8_1x_coco --dest 从github把mmdetection拉下来然后新建测试文件
from mmdet.apis import init_detector, inference_detectorconfig_file /home/111/mmdetection-main/configs/faster_rcnn/faster-rcnn_r50_fpn_1x_coco.pycheckpoint_file checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth
device cuda:0model init_detector(config_file, checkpoint_file, devicedevice)img demo.jpg
result inference_detector(model, img)
model.show_result(img, result)model.show_result(img, result, out_fileresult.jpg)
正常运行即可