错误合集

错误1:

RuntimeError: Unable to find a valid cuDNN algorithm to run convolution

解决:换了个 gpu 来跑就好了,之前的 gpu 被占用了

参考:https://stackoverflow.com/a/65979161

错误2:

cv2.imread 读取图片是遇到如下错误:

Corrupt JPEG data: xx extraneous bytes before marker 0xd9

原因:图片损坏

解决,用 cv2 保存下:

import cv2
filename = 'xx.jpg'
img = cv2.imread(filename)
cv2.imwrite('test.jpg' , img)

参考:https://github.com/tensorflow/models/issues/2194#issuecomment-427661393

或者把 报错的图像 删掉。

错误3:

fatal: unable to access xxx: Encountered end of

解决:许多人都说是代理的问题

我直接把当前仓库的 .git 删了。。。

sudo rm -r .git

错误4:

KeyError: "None of [Int64Index([], dtype='int64')] are in the []"

解决:

data_at_indices = data.iloc[indices]

错误5:

import matplotlib.pyplot as plt

qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “./plugins/platforms” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

解决:pip uninstall PyQt5
参考:https://blog.csdn.net/weixin_41848012/article/details/108830330

posted @   Zenith_Hugh  阅读(74)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现

喜欢请打赏

扫描二维码打赏

微信打赏

点击右上角即可分享
微信分享提示