错误合集
错误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