自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 ImportError: cannot import name ‘get_git_hash‘ from ‘mmcv.utils‘

将from mmcv.utils import get_git_hash改成。

2025-02-17 14:06:31 412

原创 Faiss-GPU安装

安装指令:(二选一)

2024-12-25 14:47:37 594

原创 AssertionError: size of input tensor and input format are different.

将add_image("DataLoader",imgs,step)改成add_images("DataLoader",imgs,step)就可解决问题。跟着土堆的视频做DataLoader时候,使用writer.add_image("DataLoader",imgs,step)控制台报错。CHW 是DataLoader的输入格式,表示为通道(C)、高度(H)和宽度(W)img的图片格式不是CHW,因此要使用add_images()加载图片。

2024-09-27 15:17:48 188

原创 python安装opencv报错ERROR: ERROR: Could not build wheels for opencv-python, which is required to install

当你在pytorch中下载opencv时可能会出现ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects时,很可能是因为你的版本3.6和opencv的版本不匹配。在terminal中使用 pip install opencv-python==4.3.0.38。pip install opencv-python报错。

2024-09-26 22:37:00 966

原创 Python中使用国内镜像源地址

在terminal中使用 pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple/ package-name。下载清华镜像,加快下载速度。

2024-09-26 22:10:44 140

原创 from PIL import Image报错

解决方法:打开terminal 使用pip install pillow。

2024-09-26 15:46:23 512

原创 Solving environment: failed PackagesNotFoundError: The following packages are not available from cu

解决方法:打开terminal输入 pip install opencv-python。

2024-09-26 15:18:12 657

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除