摘要: import os import xml.etree.ElementTree as ET import cv2 origin_ann_dir = 'D:/Data/MyAnnoData/vmwareData/Annotations/' new_ann_dir = 'D:/Data/MyAnnoData/vmwareData/save/Annotations/' new_img_dir = '... 阅读全文
posted @ 2019-01-28 20:10 crazybird123 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1、widerface样本标签处理 图片名 x1 y1 x2 y2 x11 y11 x22 y22 多人脸框 2、PNET,制作正样本、负样本、部分样本 IOU:utils.py 生成train-label.txt 生成lmdb数据 开始训练 train24.bat solver-24.protot 阅读全文
posted @ 2019-01-24 16:13 crazybird123 阅读(1189) 评论(2) 推荐(0) 编辑
摘要: import os, h5py, cv2, sys, shutil import numpy as np from xml.dom.minidom import Document rootdir = "G:/MTCNNTraining/faceData/widerFace" convet2yoloformat = True convert2vocformat = True resized_di... 阅读全文
posted @ 2019-01-23 09:36 crazybird123 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1、wideface数据 安装opencv 阅读全文
posted @ 2019-01-21 19:38 crazybird123 阅读(240) 评论(0) 推荐(0) 编辑
摘要: int main( ) { //加载模型 ncnn::Net squeezenet; squeezenet.load_param("mobilefacenet/mobilefacenet.param"); squeezenet.load_model("mobilefacenet/mobilefacenet.bin"); string readImgPartDir = "D:\\fac... 阅读全文
posted @ 2019-01-02 14:19 crazybird123 阅读(337) 评论(0) 推荐(0) 编辑
摘要: bat文件 阅读全文
posted @ 2018-12-27 19:45 crazybird123 阅读(134) 评论(0) 推荐(0) 编辑
摘要: import re #导入正则表达式模块 import requests #python HTTP客户端 编写爬虫和测试服务器经常用到的模块 import random #随机生成一个数,范围[0,1] import os def mkdir(path): # 判断路径是否存在 # 存在 True # 不存在 False isExists=os.p... 阅读全文
posted @ 2018-12-18 19:21 crazybird123 阅读(321) 评论(0) 推荐(0) 编辑
摘要: clc clear all load imdb.mat [age,~]=datevec(datenum(imdb.photo_taken,7,1)-imdb.dob); fid = fopen('imdb.txt','wt'); for i = 1:length(imdb.photo_taken) fprintf(fid, '%s,', char(imdb.full_path(i)... 阅读全文
posted @ 2018-12-17 17:05 crazybird123 阅读(232) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get update sudo apt-get upgrade sudo apt install -y python-dev python-pip python-nose gcc g++ git gfortran sudo apt install -y libopenblas-dev liblapack-dev libatlas-base-dev sudo pip i... 阅读全文
posted @ 2018-12-14 16:29 crazybird123 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 添加环境变量 opencvsudo apt install python-pippip install opencv-python pip升级后Import Error:cannot import name main 阅读全文
posted @ 2018-12-14 10:32 crazybird123 阅读(633) 评论(0) 推荐(0) 编辑