摘要: 效果图:键盘控制各个x,y,z,还有fov数值 一开始的w, h = img.shape[0:2]这里宽、高错乱,原因未知,只能这么用 python版本的: c++ 版本: include include include "opencv2/opencv.hpp" using namespace st 阅读全文
posted @ 2019-10-25 11:30 无左无右 阅读(1951) 评论(0) 推荐(0) 编辑
摘要: [[1.] [0.] [1.] [0.] [1.] [1.] [0.] [0.]] 0代表相似,1代表不相似 loss曲线: 测试: 数据集: https://i.cnblogs.com/Files.aspx 阅读全文
posted @ 2019-09-30 11:28 无左无右 阅读(2240) 评论(1) 推荐(0) 编辑
摘要: 1. example1 import cv2 import matplotlib.pyplot as plt img1 = cv2.imread('/media/data_2/everyday/0930/1.jpeg') img2 = cv2.imread('/media/data_2/everyd 阅读全文
posted @ 2019-09-30 10:25 无左无右 阅读(9975) 评论(0) 推荐(0) 编辑
摘要: 1.模型保存与加载 1.1 #a、保存 推荐仅仅保存模型的state_dict torch.save(model.state_dict(), MODELPATH) # .pt .pth #b、加载 model = TheModelClass(*args, **kwargs) model.load_s 阅读全文
posted @ 2019-09-29 12:00 无左无右 阅读(245) 评论(0) 推荐(0) 编辑
摘要: [toc] 1.打开ipynb文件 可以选择file download as .py 2.训练网络经验 (20191017) 2.1 低维度(channel少的)层不用relu,用了信息会损失很多 2.2 如何确定每层的channel?把每层特征图可视化,有全0的就说明可以减少该层的channel 阅读全文
posted @ 2019-09-24 20:06 无左无右 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 深度学习ocr交流qq群:1020395892 这是作者提供的图,对应的代码如下: void growing_text_line(vector<Mat> &kernals, vector<vector<int>> &text_line, float min_area) { Mat label_mat 阅读全文
posted @ 2019-09-24 09:34 无左无右 阅读(2008) 评论(2) 推荐(0) 编辑
摘要: 需要文件夹cuda8.0 cudnn5, cuda8.0 cudnn6 switch_cudnn.sh 运行: ./switch_cudnn.sh 5 ./switch_cudnn.sh 6 switch_python.sh 阅读全文
posted @ 2019-09-17 09:12 无左无右 阅读(174) 评论(0) 推荐(0) 编辑
摘要: int main() { //创建用于绘制的深蓝色背景图像 cv::Mat image = cv::Mat::zeros(480, 640, CV_8UC3); image.setTo(cv::Scalar(100, 0, 0)); //输入拟合点 std::vector points; point 阅读全文
posted @ 2019-09-09 20:56 无左无右 阅读(1124) 评论(0) 推荐(0) 编辑
摘要: filesystem库是一个可移植的文件系统操作库,它在底层做了大量的工作,使用POSIX标准表示文件系统的路径,使C++具有了类似脚本语言的功能,可以跨平台操作目录、文件,写出通用的脚本程序。 1.path的构造函数可以接受C字符串和string,也可以是一个指定首末迭代器字符串序列区间。 2.f 阅读全文
posted @ 2019-09-02 12:01 无左无右 阅读(8851) 评论(0) 推荐(0) 编辑
摘要: 打印输出: normMean = [0.49680823, 0.48622987, 0.44980356] normStd = [0.24765104, 0.24397221, 0.26272318] transforms.Normalize(normMean = [0.49680823, 0.48 阅读全文
posted @ 2019-08-17 18:02 无左无右 阅读(1074) 评论(0) 推荐(0) 编辑