摘要: ubuntu 14.04 编译opencv-3.4.2 报错解决: 错误信息: /usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `.bss' can not be used 阅读全文
posted @ 2019-12-21 12:22 dangxusheng 阅读(3222) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/12/1 22:03 # @Author : dangxusheng # @Email : dangxusheng163@163.com # @File : center_los 阅读全文
posted @ 2019-12-19 23:28 dangxusheng 阅读(3462) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/AI_focus/article/details/78339234 https://www.cnblogs.com/massquantity/p/8964029.html pytprch HingeLoss 的实现: """ 铰链损失 SVM hinge 阅读全文
posted @ 2019-12-19 23:27 dangxusheng 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: 数据增强策略: 1 在线模式--训练中 随机裁剪(完全随机,四个角+中心) crop def random_crop(img, scale=[0.8, 1.0], ratio=[3. / 4., 4. / 3.], resize_w=100, resize_h=100): """ 随机裁剪 :par 阅读全文
posted @ 2019-10-24 18:44 dangxusheng 阅读(7457) 评论(0) 推荐(0) 编辑
摘要: ***************************************** .zip 文件 压缩: zip xxx.zip xxx # 目录结构为一层 zip -r xxx.zip xxx/ # 目录结构为多层 解压缩: unzip xxx.zip [-d dst/] # 解压到指定目录, 阅读全文
posted @ 2019-10-20 19:28 dangxusheng 阅读(1849) 评论(0) 推荐(0) 编辑
摘要: /* 合并多图像矩阵到一个大矩阵上 */ Mat mergeImgMats(vector<Mat> img_mats, int per_width, int per_height, int cols, int split_w) { int count = img_mats.size(); CV_Assert(count > 0); // 定义 行 int rows = count % cols = 阅读全文
posted @ 2019-10-18 16:06 dangxusheng 阅读(278) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include <iostream> #include <io.h> #include <direct.h> #include <time.h> #include <string> #include <vector> #include <windows.h> using 阅读全文
posted @ 2019-10-18 15:03 dangxusheng 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 1 准备一个定时释放内存的命令:freemem.sh 2 将执行任务写入 定时任务 3 重新启动定时任务 4 完成,以后再也不会死机了。。。。。。 阅读全文
posted @ 2019-10-13 16:44 dangxusheng 阅读(1647) 评论(0) 推荐(0) 编辑
摘要: 环境:ubuntu18 + nvidia 430 + cuda 10.0 + cudnn7.6.0 + tensorflow-gpu 2.0.0 调用 layers.Conv2D() 就报错,报错信息: 尝试过 升级cuda到10.1 还是报错,经过一番查找,发现只要在开头设置下 就可以了, 在开头 阅读全文
posted @ 2019-10-11 21:55 dangxusheng 阅读(7478) 评论(0) 推荐(2) 编辑
摘要: 人脸识别:mtcnn (依赖opencv和tensorflow) 人脸对齐:face-alignment 国内镜像: 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技 阅读全文
posted @ 2019-10-09 08:50 dangxusheng 阅读(1347) 评论(0) 推荐(0) 编辑