自定义博客皮肤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: No module named ‘imageio.v3‘

在python3.5的环境中通过 “pip install imageio” 命令安装了imageio,查看imageio的版本为’2.9.0’。在python3.5的环境中不支持更高版本的imageio版本,无法升级成功。报错:ImportError: No module named ‘imageio.v3’上述命令可以成功执行。

2024-06-04 11:57:48 112

原创 python docxtpl利用模板生成docx文件

参考官方网址:https://docxtpl.readthedocs.io/en/latest/

2024-05-13 10:30:10 294 2

原创 使用torch报错 UserWarning: CUDA initialization: CUDA driver initialization failed

安装torch时选择的cuda版本和驱动版本不兼容,可以从官网查看cuda版本对应的驱动版本:https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html。使用nvidia-smi查看当前的驱动版本:发现驱动版本440.82可以使用cuda10.2。使用pip uninstall torch卸载之前安装的torch1.8.1+cu111,重新安装torch(版本为torch1.8.1+cu102),上述报错解决。

2024-04-11 20:21:45 516 1

原创 TypeError: invalid entry 2 in condlist: should be boolean ndarray

使用Numpy的函数np.select()的时候,报错:TypeError: invalid entry 2 in condlist: should be boolean ndarray。np.select(condlist, choicelist, default=0)中的参数condlist需要为布尔型的值,如果有非布尔,则会报上述错误。将参数中的condlist的值全部转为布尔值,则问题解决。版本信息:python=3.8, numpy=1.22。

2024-03-28 10:02:27 211 2

原创 module ‘cv2.aruco‘ has no attribute ‘DetectorParameters_create‘

在linux平台(ubuntu18.04)使用opencv语句 cv2.aruco.DetectorParameters_create()的时候,报错:module ‘cv2.aruco’ has no attribute ‘DetectorParameters_create’上述问题是因为opencv的版本过高,此版本的opencv没有相应的属性,可以重新安装其他版本的opencv来使用此属性。使用的版本信息为:python。

2024-02-29 21:15:36 654

原创 /usr/bin/ld: warning: libgstbase-1.0.so.0, needed by /lib/libopencv_videoio.so, not found

在linux平台(ubuntu18.04)使用make命令编译的过程中报错:缺少libgstbase-1.0.so.0, libgstreamer-1.0.so.0, libgstapp-1.0.so.0, libgstriff-1.0.so.0, libgstpbutils-1.0.so.0, libgstaudio-1.0.so.0, libgstvideo-1.0.so.0。上述问题是因为在链接过程中找不到依赖库,而这些依赖库是有GStreamer的基础库提供的。

2024-02-23 20:38:39 369

原创 /usr/bin/ld: warning: libavcodec.so.57, needed by /home/abc/libopencv_videoio.so, not found

你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:撤销:Ctrl/Command + Z重做:Ctrl/Command + Y加粗:Ctrl/Command + B斜体:Ctrl/Command + I标题:Ctrl/Command + S

2024-02-23 17:52:30 585

空空如也

空空如也

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

TA关注的人

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