上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: 做泊松融合的时候 cv::seamlessClone(src, dst, inpaintMask2, center, im_result, cv::NORMAL_CLONE); 中: dst的大小任意。但是最好保证src和inpaintMask2大小一致。 1、不规则mask图 //seamless 阅读全文
posted @ 2020-10-30 17:23 皮卡皮卡妞 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 参考博客:https://www.cnblogs.com/makefile/p/nms.html Iou: nms: 如上图,检测车。非极大值抑制的方法是:先假设有6个矩形框,根据分类器的类别分类概率做排序,假设从小到大属于车辆的概率 分别为A、B、C、D、E、F。 (1)从最大概率矩形框F开始,分 阅读全文
posted @ 2020-10-29 10:46 皮卡皮卡妞 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 查准率、查全率、AP、map,参考知乎地址:https://zhuanlan.zhihu.com/p/94597205 TP (True Positive):一个正确的检测,检测的IOU ≥ threshold。即预测的边界框(bounding box)中分类正确且边界框坐标正确的数量。在实际预测中 阅读全文
posted @ 2020-10-29 09:35 皮卡皮卡妞 阅读(1968) 评论(0) 推荐(0) 编辑
摘要: int face_index = 1;std::stringstream out; out << face_index; string save_pth = img_path.substr(0, img_path.find_last_of('.')) + "_face_index_"+ out.st 阅读全文
posted @ 2020-10-28 14:34 皮卡皮卡妞 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 打印pytorch每层参数。 采用的是直接在层中加入txt的写入。需要修改的文件位置:./site-packages/torch/nn/modules/ Conv2D v = F.conv2d(input, self.weight, self.bias, self.stride,self.paddi 阅读全文
posted @ 2020-10-28 11:33 皮卡皮卡妞 阅读(2115) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-10-28 10:47 皮卡皮卡妞 阅读(2383) 评论(0) 推荐(0) 编辑
摘要: 下载地址为: https://download.pytorch.org/whl/torch_stable.html 阅读全文
posted @ 2020-10-23 14:42 皮卡皮卡妞 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 1、 bool draw_rect = false; MRECT* rect = &face->rcFace[s]; if (draw_rect) { cv::rectangle(im_src, cv::Point(rect->left, rect->top), cv::Point(rect->ri 阅读全文
posted @ 2020-10-15 10:53 皮卡皮卡妞 阅读(1396) 评论(0) 推荐(0) 编辑
摘要: 1、cv::mat string src_im_pth; im_src = cv::imread(src_im_pth, -1); if (im_src.empty()) { fprintf(stderr, " [wjj] Error! image %s not valid\n", src_im_p 阅读全文
posted @ 2020-10-15 10:38 皮卡皮卡妞 阅读(571) 评论(0) 推荐(0) 编辑
摘要: import os import cv2 imgdir = "./test_img/" maskdir = "./train_mask/" HH=os.listdir(imgdir) for i in range(len(HH)): img_dir=HH[i] img = cv2.imread(". 阅读全文
posted @ 2020-10-13 11:19 皮卡皮卡妞 阅读(3365) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页