10 2020 档案
摘要:做泊松融合的时候 cv::seamlessClone(src, dst, inpaintMask2, center, im_result, cv::NORMAL_CLONE); 中: dst的大小任意。但是最好保证src和inpaintMask2大小一致。 1、不规则mask图 //seamless
阅读全文
摘要:参考博客:https://www.cnblogs.com/makefile/p/nms.html Iou: nms: 如上图,检测车。非极大值抑制的方法是:先假设有6个矩形框,根据分类器的类别分类概率做排序,假设从小到大属于车辆的概率 分别为A、B、C、D、E、F。 (1)从最大概率矩形框F开始,分
阅读全文
摘要:查准率、查全率、AP、map,参考知乎地址:https://zhuanlan.zhihu.com/p/94597205 TP (True Positive):一个正确的检测,检测的IOU ≥ threshold。即预测的边界框(bounding box)中分类正确且边界框坐标正确的数量。在实际预测中
阅读全文
摘要: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
阅读全文
摘要:打印pytorch每层参数。 采用的是直接在层中加入txt的写入。需要修改的文件位置:./site-packages/torch/nn/modules/ Conv2D v = F.conv2d(input, self.weight, self.bias, self.stride,self.paddi
阅读全文
摘要:下载地址为: https://download.pytorch.org/whl/torch_stable.html
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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(".
阅读全文
摘要:def tensor2im(image_tensor, imtype=np.uint8, normalize=True): image_numpy = image_tensor.cpu().float().detach().numpy() if normalize: image_numpy = (i
阅读全文
摘要:import os import numpy as np import cv2 old_ng='./train_B/' new_wg_dir='./clear/train_A/' new_ng_dir='./clear/train_B/' if not os.path.exists(new_wg_d
阅读全文
摘要:pytorch1.1.0+python 参考博客https://blog.csdn.net/Cxiazaiyu/article/details/91129657 降低版本到: pytorch1.0.1错误消失,但是出现新的错误:
阅读全文
摘要:pytorch1.3.0+python 问题:pytorch版本过高 解决: https://download.pytorch.org/whl/cu100/torch_stable.html 下载低版本的pytorch,这里下载的是1.1.0 问题解决。
阅读全文
摘要:1、nvcc -V 查看cuda版本 2、查看pytorch版本 3、安装pytorch pip install torch==1.0.1 -f https://download.pytorch.org/whl/torch_stable.html 4、安装torchvision pip instal
阅读全文