- 博客(10)
- 资源 (5)
- 收藏
- 关注
原创 No module named ‘distutils.cmd
最近在乌班图上安装深度学习配置环境rknntoolkit1.6.0的问题上出现了问题,困扰我好长时间,激活环境的时候,输入pip3 -V查看版本的时候,出现了Traceback (most recent call last): File "/home/xiaosongsongdeqiuqiu/kouzhaoshibie/huanjingdajian/venv/bin/pip3", line 5, in <module> from pip._internal.cli.mai...
2022-05-23 10:34:25
22320
6
原创 DistributionNotFound: The ‘pycocotools>=2.0‘ distribution was not found
最近自己在搞YOLOv5目标检测学习,对模型的搭建遇到了很多问题,查看了很多资料,经过一些大神的回答,这个模型终于是跑起来了。把自己的错误总结整理一下。错误一:AttributeError: Can't get attribute 'SPPF' on <module 'models.common' from 'F:\\YOLO-V5\\yolov5-5.0\\models\\common.py'>改正:你去他的6.0版本的moudl...
2021-12-16 20:49:44
2295
原创 f.write(a) io.UnsupportedOperation: not writable
当你的程序出现写不进文件的时候 ,很有可能你的with open() as f 函数写错啦。with open('D:/pyziliao/data.txt','参数') as f: 这个表明只是文件的进行一些操作,我当时在调试程序的时候出现这个报错,原因是缺少参数改正如下with open('D:/pyziliao/data.txt','a') as f:对文件进行写入...
2021-12-10 10:29:34
634
原创 NotImplementedError unindent does not match any outer indentation level
NotImplementedError unindent does not match any outer indentation level
2021-12-04 21:02:44
1363
原创 sobol 算子程序
import numpy as npimport cv2 as cvimg=np.zeros((300,300,3),np.uint8)#cv.imshow('a',img) #展示图片#cv.waitKey(0) #无限等待for i in range(300): #遍历每一个像素 使其图片中间生成白线宽 for j in range(300): if i>=130 and i<=170: img[i,j]=255 e...
2021-12-03 19:28:07
2553
原创 傅里叶变换 低通滤波器
import cv2 as cvimport numpy as npimport matplotlib.pyplot as pltimg = cv.imread('E:/tuxiangku/cat.jpg')# 读入图片并灰度化gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)gray_f=np.float32(gray) ##float类型h,w=gray.shape #获得长宽a=int(h/2)# 计算图片中心位置b=int(w/2)dst=n
2021-12-03 19:27:13
980
原创 傅里叶变换的高通滤波
import cv2 as cvimport numpy as npimport matplotlib.pyplot as pltimg = cv.imread('E:/tuxiangku/cat.jpg')# 读入图片并灰度化gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)gray_f=np.float32(gray) ##float类型h,w=gray.shape #获得长宽a=int(h/2)# 计算图片中心位置b=int(w/2)dst=
2021-12-03 19:23:31
2634
原创 TypeError: torch.FloatTensor is not a Module subclass
最近学习目标检测算法搭建网络的时候,检查程序遇到错误 ,如TypeError: torch.FloatTensor is not a Module subclass找了很长时间总算解决了 。错误如下: class A(nn.Module): def __ini...
2021-12-03 16:58:40
6512
6
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人