机器学习
明年暑假升初中
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ubuntu16.04安装gpu版tensorflow1.2+cuda+cudnn
参照:http://www.linuxidc.com/Linux/2016-11/137561.htmhttp://blog.youkuaiyun.com/zhaoyu106/article/details/52793183/+安装tensorflow:(具体见http://blog.youkuaiyun.com/yjy728/article/details/71403271)pip instal原创 2017-06-23 20:23:56 · 2032 阅读 · 0 评论 -
AM-Softmax的keras实现: 《Additive Margin Softmax for Face Verification》
原答案在对输入进行归一化时有错误,另外m应该是一个固定的超参数不需要训练,已改正论文地址:Additive Margin Softmax for Face Verification 和L-Softmax、A-Softmax比简单很多,在minist上测试通过,两个500节点的全连接层 + 10个节点的分类层,训练两轮验证集的acc达到97+%。运行环境: keras:2.1.5...原创 2018-03-28 17:14:03 · 5759 阅读 · 51 评论 -
python中绘制roc曲线计算阈值
thresh.npy为正样例与反样例分别算出来的值,删去错误的预测样本,通过画roc曲线来计算阈值# -*- coding: utf-8 -*-import matplotlib.pyplot as pltimport numpy as npfrom sklearn.metrics import roc_curve, aucimport utils.config as config...原创 2018-03-20 15:56:47 · 6299 阅读 · 2 评论 -
A-Softmax的keras实现-《SphereFace: Deep Hypersphere Embedding for Face Recognition》
A-Softmax的keras实现参考文档:https://www.cnblogs.com/heguanyou/p/7503025.html注:主体完成,调试中,先行记录,待续。。。已完成 注:我写的不是很好,因为模型搭建用到了batch_size这个参数,所以编译很慢;而且资料都说该方法很难收敛,比较难训练;推荐后续的改进版: 《AM : Additive Margin Sof...原创 2018-03-23 16:25:27 · 3720 阅读 · 5 评论 -
Keras中的多输入ImageDataGenerator图片生成器
参考keras官网以及https://github.com/Deep-Learning-Person-Re-Identification/ 通过重载Keras自带的ImageDataGenerator来实现同时输入多张图片。该代码是为了实现Keras中的TripletNet中的Triplet Loss。 更多部分参考: http://blog.youkuaiyun.com/yjy728/article/...原创 2018-03-15 17:21:13 · 4439 阅读 · 6 评论 -
Keras中的三输入模型的损失函数Triplet Loss
Triploss函数来自罗浩博士的知乎分享与github分享:https://www.zhihu.com/question/46943328/answer/175040246def triplet_loss(y_true, y_pred): y_pred = K.l2_normalize(y_pred,axis=1) batch = batch_size #prin...原创 2018-03-15 16:52:16 · 9452 阅读 · 1 评论 -
keras 多输入多输出网络
keras中的多输入多输出网络多输入多输出网络搭建的官网介绍: http://keras-cn.readthedocs.io/en/latest/getting_started/functional_API/Demo: from keras.applications.mobilenet import MobileNetfrom keras.applications.incept...原创 2018-03-15 16:34:27 · 14524 阅读 · 6 评论 -
【转】对Finger-vein biometric identification using convolutional neural network的理解以及扩展应用
读了这篇关于手指静脉识别的文章,想利用其中的思想,用于手掌静脉识别问题当中。在这里列出文中的一些思路和自己的联想扩展。首先是文章的理论背景。LeCun等人提出了一种称为Lenet-5的知名CNN架构。在手写识别问题中应用的Lenet-5CNN,包括了执行卷积与降采样操作交替的七个层。第一层卷积涉及有卷积核的输入,基本上作为提取输入样本的显著特征的边缘检测器。在这种情况下转载 2017-12-17 15:12:48 · 672 阅读 · 0 评论 -
离线安装Tensorflow、Keras、OpenCV(任意库)
此方法可以安装任意库及其依赖包,Windows、Ubuntu下都适用2017.12.17更新如无特殊版本要求,有一个更简单的方法:第一步安装Anaconda不变,安装好之后:直接运行:原创 2017-12-17 17:49:24 · 6631 阅读 · 4 评论 -
Ubuntu Anaconda 安装tensorflow及opencv3.2.0
一、安装Anaconda目前只支持python3.5.X,去官网历史版本找anaconda4.2.0版本下载https://repo.continuum.io/archive/index.htmlAnaconda3-4.2.0-Linux-x86_64.sh455.9M$ cd /home/abner/下载/$ bash ./Anaco原创 2017-05-08 09:51:03 · 11996 阅读 · 9 评论
分享