报错解决
文章平均质量分 89
Satellite_AI
这个作者很懒,什么都没留下…
展开
-
[yolov5]The size of tensor a (3078) must match the size of tensor b (3) at non-singleton dimension报错
问题描述:在使用yolov5训练自己制作的数据集时出现报错背景:数据集是自己制作的yolo格式数据集,图片较大,没有做resize处理,分辨率为4000*3000,猜测可能是数据集出现问题在网上搜索报错信息:解决方案一:img = Image.open(image_path) 改为img = Image.open(image_path).convert(‘RGB’)。解决方案二:问题1::RuntimeError: DataLoader worker (pid XXX) is kille原创 2022-05-09 21:42:08 · 2940 阅读 · 1 评论 -
【Ubuntu】QT程序 could not find or load the Qt platform plugin “xcb“ in “报错解决
问题描述:见下图:import matplotlib.pyplot as pltimport cv2img=cv2.imread('img_path')###读入单张图片b,g,r=cv2.split(img) #原图的bgr三个通道分离img_rgb=cv2.merge([r,g,b])#rgb顺序显示的合成plt.figure()plt.subplot(331),plt.imshow(img),plt.title("cat_bgr")plt.subplot(337),plt.i原创 2022-05-08 22:41:51 · 5165 阅读 · 0 评论