![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 58
码上出奇迹
这个作者很懒,什么都没留下…
展开
-
RuntimeError: Given input size: (256x4x4). Calculated output size: (256x0x0). Output size is too sma
问题说的是,前向传播时,神经网络中的某一池化层的输入是(256x4x4),而输出却是(256x0x0)。显然不可能有大小为0的图片尺寸。我们从最后一行报错的代码那里开始调试(不是pytorch包的代码,仔细找能找到)原创 2023-05-22 20:02:42 · 3843 阅读 · 2 评论 -
【文件批量重命名】python批量修改文件名
源代码是不用修改的,可以修改任何形式的文件(.xxx结尾),下面演示一下如何使用,直接运行py文件,原创 2023-05-08 14:15:32 · 584 阅读 · 0 评论 -
【YOLOv5运行detect报错】qt.qpa.plugin: Could not load the Qt platform plugin “xcb“
在ubuntu18.04上运行YOLOv5项目,跑detect.py报以下错误:qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/root/anaconda3b/python3.9/site-packages/cv2/plugins" even though it was found.This application failed to start because no Qt platform plugin could be原创 2022-05-16 09:25:33 · 1171 阅读 · 4 评论 -
【YOLOv4运行demo.py报错】:cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function ‘rectangle‘
一、问题描述最近在linux服务器上部署YOLOv4项目(https://github.com/Tianxiaomo/pytorch-YOLOv4),配置好环境以后,运行demo.py进行测试,报错如下:Traceback (most recent call last): File "demo.py", line 161, in <module> detect_cv2(args.cfgfile, args.weightfile, args.imgfile) File "dem原创 2022-05-05 16:52:39 · 8135 阅读 · 2 评论 -
【JDBC连接MySql数据库报错】Loading class `com.mysql.jdbc.Driver‘. This is deprecated.The new driver class is
使用mysql8.0.27连接数据库时,运行测试报错如下:Loading class com.mysql.jdbc.Driver’. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.原创 2022-03-12 16:18:22 · 2624 阅读 · 11 评论 -
【Jupyter切换环境后新建notebook报错】Bad file descriptor (D:\bld\zeromq_1629967000004\work\src\epoll.cpp:100)
Jupyter Notebook可以使用nb_conda插件实现conda虚拟环境的切换,但是,在新环境下新建notebook时,会出现以下报错:“C:\Users\Ф־ǿ\AppData\Local\Temp\tmpz_9vg8ey.bat”’ is not recognized as an internal or external command,operable program or batch file.Could Not Find C:\Users\Ф־ǿ\AppData\Local\Te.原创 2022-03-08 10:36:23 · 2488 阅读 · 2 评论