摘要:
Windows使用PyTorch遇到RuntimeError: Unable to find a valid cuDNN algorithm to run convolution的解决方案 PyTorch在Windows上的cuDNN实现有问题才会导致这个错误,解决方法是禁用cuDNN滚回旧实现上 阅读全文
摘要:
nan: not a number 非数字 注意事项:对负数开方sqrt(-1.0)、对负数求对数(log(-1.0))、0.0/0.0、0.0*inf、inf/inf、inf-inf这些操作都会得到nan。(0/0会产生操作异常;0.0/0.0不会产生操作异常,而是会得到nan) 辨别方法:isn 阅读全文
摘要:
int rows = image.rows;//图像的行数 int columns = image.cols;//图像的列数 int nonZeroCount = cv::countNonZero(grayMat); int result=rows *columns -nonZeroCount ; 阅读全文
摘要:
cv::VideoCapture video = VideoCapture(); video.open("D:\\Temp\\Videos\\黄原胶.mp4");//读取视频 if (!video.isOpened()) { printf("could not read this video fil 阅读全文