MMCV库
参考文章:https://blog.csdn.net/m0_62919535/article/details/132595519
MMCV 是一个面向计算机视觉的基础库,它提供了以下功能:
- 图像和视频处理
- 图像和标注结果可视化
- 图像变换
- 多种 CNN 网络结构
- 高质量实现的常见 CUDA 算子
缺点:mmcv与pytorch和cuda有版本兼容的问题
验证pytorch和cuda版本、
命令:
- python
- import torch
- print(torch.version)
- print(torch.version.cuda)
Python
# 进入python环境
python
>>python
>>Python 3.9.20 (main, Oct 3 2024, 07:38:01) [MSC v.1929 64 bit (AMD64)] on win32
# 进入torch环境
>>> import torch
>>> print(torch.__version__)
2.5.1+cu118
>>> print(torch.version.cuda)
11.8
未找到torch对应版本。下了torch2.1.x版本,网站如下:
https://mmcv.readthedocs.io/zh-cn/stable/get_started/installation.html