错误合集
错误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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现