自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 ValueError: Tensor Tensor xxx is not an element of of this graph的解决方案

问题:在利用keras+flask构建一个简单的深度学习后台服务器,遇到了如下的问题:ValueError: Tensor Tensor("fc1000/Softmax:0", shape=(?, 1000), dtype=float32) is not an element of this graph。 解决方案如下:在初始化的时候,加载模型文件和生成graph。 完...

2018-07-30 21:18:44 6540 5

原创 keras训练模型生成pb文件(java调用、python调用)

from __future__ import print_functionimport kerasfrom keras.datasets import mnistfrom keras.models import Sequentialfrom keras.layers import Dense, Dropout, Flattenfrom keras.layers import Conv2...

2018-07-07 17:15:22 8088 4

原创 pandas之透视(pivot)数据功能

问题:        对A列和B列进行分组,然后在C列上进行透视操作并对D列数据进行求和实现功能如下:实现方式:        pivot_table(df, values=’D’, index=[‘A’, ‘B’], columns=[‘C’], aggfunc=np.sum)...

2018-03-27 16:25:10 377

原创 谱减法降噪(python实现)

#!/usr/bin/env pythonimport numpy as npimport waveimport mathimport ctypes as ctclass FloatBits(ct.Structure): _fields_ = [ ('M', ct.c_uint, 23), ('E', ct.c_uint, 8), ...

2018-11-21 16:26:40 3062 8

原创 非极大抑制(Non-maximum suppression)python代码实现

定位一个物体,最后算法就找出了一堆的方框,我们需要判别哪些矩形框是没用的。非极大值抑制:先假设有6个矩形框,根据分类器类别分类概率做排序,从大到小分别属于物体的概率分别为A、B、C、D、E、F。(1)从最大概率矩形框F开始,分别判断B~F与A的重叠度IOU是否大于某个设定的阈值;(2)假设B、D与F的重叠度超过阈值,那么就扔掉B、D;并标记第一个矩形框A,是我们保留下来的。(3)从剩下...

2018-11-20 18:48:57 1086

原创 keras自定以Layer层

from keras import backend as Kfrom keras.models import Modelfrom keras.layers import Layerin_a = Input(shape=(96, 96, 3))in_p = Input(shape=(96, 96, 3))in_n = Input(shape=(96, 96, 3))emb_a = ...

2018-10-11 16:49:04 1163

原创 ffmpeg的使用

ffmpeg获取音频文件时长ffmpeg -i fffc4e3f19774fcdbee2d5d8593900c6.wav 2>&1 | grep 'Duration' | cut -d ' ' -f 4 | sed s/,//                  参考:1.http://linux.51...

2018-09-07 14:56:48 218

转载 CentOS7添加/删除用户和用户组

1.新建用户 adduser testuser //新建testuser 用户 passwd testuser //给testuser 用户设置密码2.建工作组 groupadd testgroup //新建test工作组3.新建用户同时增加工作组 useradd -g testgroup testuser //新建testuser用户并增加到testgroup工作组//注::...

2018-08-01 14:16:09 764

转载 CentOS7使用firewalld打开关闭防火墙与端口

1、firewalld的基本使用启动: systemctl start firewalld关闭: systemctl stop firewalld查看状态: systemctl status firewalld 开机禁用  : systemctl disable firewalld开机启用  : systemctl enable firewalld  2.syste...

2018-08-01 14:12:57 151

原创 利用线程池+回调+百度语音识别来批量实现语音识别

#!/usr/bin/python3# -*- coding: utf-8 -*-from aip import AipSpeechimport osimport sysfrom concurrent.futures import ThreadPoolExecutorimport shutil""" 你的 APPID AK SK """APP_ID = 'xxx'API_K...

2018-07-31 14:26:45 512

原创 Linux相关问题

问题1:[root@localhost ~]# service mysqld startRedirecting to /bin/systemctl start mysqld.serviceJob for mysqld.service failed because the control process exited with error code. See "systemctl statu...

2018-07-31 09:15:17 220

原创 Ubuntu 18.04 深度学习环境搭建

Ubuntu 镜像源修改sudo cp /etc/apt/sources.list /etc/apt/sources.list.baksudo vim /etc/apt/sources.listdeb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse#deb-src http://mirrors...

2018-05-17 14:39:04 4109

转载 Generative Adversarial Nets(译)

仅供参考,如有翻译不到位的地方敬请指出。论文地址:Generative Adversarial Nets 论文翻译:XlyPb(http://blog.csdn.net/wspba/article/details/54577236)摘要我们提出了一个通过对抗过程估计生成模型的新框架,在新框架中我们同时训练两个模型:一个用来捕获数据分布的生成模型G,和一个用来估计样本来自训练数据而不是G的概率的判别...

2018-04-26 09:44:04 239

转载 使用keras训练一个区分不同人声音的模型

随着tensorflow,keras,tflearn,mxnet这种深度学习库的完善,深度学习的门槛降低,很多之前很难的领域都开始对小白开放,比如语音领域,在深度学习火起来之前,语音识别和图像识别这种领域,没有很深的基本功和领域知识,根本不可能踏足,但是时代已经变了…所以,我在某个项目中遇到了这样一个问题:给出一些电话录音,一方是客服人员,另一方是消费者,想要知道哪句话是谁说的,并且想要知道客服的...

2018-03-27 16:55:09 5123 4

转载 利用神经网络进行音频数据分类

IntroductionWhen you get started with data science, you start simple. You go through simple projects like Loan Prediction problem or Big Mart Sales Prediction. These problems have structured data arra...

2018-03-27 16:47:23 7065 4

原创 Ubuntu 16.04 神经网络环境搭建

Ubuntu远程ssh登陆sudo apt-get install openssh-server修改pip国内源mkdir ~/.pipvim pip.conf[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple[install]trusted-host=mirrors.aliyun.com安装anacondawget https...

2018-03-27 16:38:00 1386

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除