
小问题记录
记录在日常学习中遇到的一些小问题
Liu Haiwen
互相交流啊
展开
-
yolov5(v6.0)训练时出现警告:libpng warning: iCCP: known incorrect sRGB profile
yolov5(v6.0)训练时出现警告:libpng warning: iCCP: known incorrect sRGB profile原创 2023-04-28 10:54:37 · 1591 阅读 · 0 评论 -
Pycharm:Unable to diaplay frame variables
用Pycharm调试程序时出现下面问题:Unable to diaplay frame variables如下图:勾选Gevent compatible原创 2023-04-12 18:09:27 · 326 阅读 · 0 评论 -
Linux系统报错:PermissionError: [Errno 13] Permission denied: ‘/你的文件路径‘
具体报错如下:PermissionError: [Errno 13] Permission denied: ‘/你的文件路径’原创 2023-04-12 15:21:50 · 2867 阅读 · 0 评论 -
调试代码遇到AttributeError: module ‘distutils‘ has no attribute ‘version‘
查看一下各个包的版本,果然setuptools的版本是65的。看了网上一些方法,说是setuptools版本太高,降低一下即可。调试python代码时遇到的问题,我用的时Pytorch。卸载时别用conda,懂得都懂!原创 2023-03-20 22:14:08 · 1351 阅读 · 0 评论 -
DLL load failed while importing shiboken2: 找不到指定的程序。
调用shiboken2时找不到某个DLL库,试了网上的卸载重装方法没有奏效。最后一次卸载完用conda装了一下PySide2,问题没了,之前都是用pip安装的。原创 2023-03-15 20:36:57 · 1739 阅读 · 1 评论 -
Couldn’t load custom C++ ops.
成功解决Couldn‘t load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible.步骤很详细原创 2022-12-08 22:49:08 · 1812 阅读 · 0 评论 -
Caught KeyError in DataLoader worker process 0.
做目标检测网络训练时,遇到下面报错:KeyError:Sa**(自己数据集的一种类别)原创 2022-11-28 16:45:48 · 2052 阅读 · 0 评论 -
cannot assign ‘list‘ as child module ‘backbone‘ (torch.nn.Module or None expected)
本来想把Googlenet作为主干网络,去掉最后三层,但发生了报错:cannot assign ‘list’ as child module ‘backbone’ (torch.nn.Module or None expected)原创 2022-11-27 16:51:42 · 899 阅读 · 0 评论 -
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the原创 2022-11-26 13:26:37 · 829 阅读 · 0 评论 -
Userwarning: Failed to load image Python extension
Userwarning: Failed to load image Python extension:warn(f''Failed to load image Python extension:{e}'')原创 2022-11-18 14:22:06 · 5033 阅读 · 1 评论 -
sklearn安装成功,调用时报错NO Module “sklearn“
在调试程序时,报错没有sklearn,然后用pip安装了sklearn,且显示安装成功。但运行程序时依然报错NO Module “sklearn”原创 2022-11-16 22:01:14 · 5764 阅读 · 7 评论 -
np.where在处理图像像素时需要注意的小问题
现在想给满足条件的像素值加上delta,如果加上delta的值大于255,就将像素点值设置为255,如果小于0,就设置为0.在实验过程发现,当加上delta后的值大于255时,并没有将该点值设置为255原创 2022-10-27 11:02:30 · 700 阅读 · 0 评论 -
error: (-215:Assertion failed) mv[i].size == mv[0].size && mv[i].depth() == depth in function ‘cv::m
error: (-215:Assertion failed) mv[i].size == mv[0].size && mv[i].depth() == depth in function 'cv::m原创 2022-10-25 15:10:34 · 1296 阅读 · 0 评论 -
AlexNet收敛慢
网络做分类问题时,发现损失函数值变化十分缓慢,甚至不下降,只是来回波动。为了加快收敛速度,我给每个卷积层后面都加上了BN层。训练时损失函数值出现了较为明显的下降,模型可以正常学习!原创 2022-10-21 14:00:04 · 605 阅读 · 0 评论 -
训练集准确率上升,测试集的准确率没有变化!
做分类问题时,训练集准确率一直在上升,测试集的准确率确几乎没有变化!原创 2022-10-21 12:51:16 · 4364 阅读 · 0 评论 -
Python创建目录弥补cv2.imwrite()的不足
cv2.imwrite()不会自动创建未有的文件夹,并不会报错!可以在保存前先判读文件夹存在否,不存在就创建一个,这里写了一个创建文件夹函数配合cv2.imwrite()使用。原创 2022-10-08 21:59:27 · 2932 阅读 · 0 评论