
人工智能之深度学习
语音识别、语音分类、以及python语言学习的点点滴滴
qq_37591637
2018/9/19开通博客,遇事录
展开
-
tensorflow通过提取Mfcc特征+卷积神经网络来实现语音分类
对于商业需求,还有很多需要改进的地方,大家多交流准备工作一、python+pycharm+tensorflow的下载与安装以及配置忠告:不要下载tensorflow2.0以上的版本,因为tensorflow1.0版本的很多方法tensorflow2.0都不用了,而且网上有关的资料都是tensorflow1.版本,tensorflow2.0的资料很少,你报错的话,百度出来的博客都是让你改...原创 2020-01-16 17:07:50 · 10238 阅读 · 8 评论 -
AttributeError: module 'tensorflow' has no attribute 'Session'
报错信息如下报错原因因为是tensorflow 2.0版本解决方案用tf.compat.v1.Session()代替tf.Session()这个时候就不会再报错了原创 2019-10-23 15:46:14 · 5945 阅读 · 0 评论 -
python编程之报错 ValueError: x and y must have same first dimension, but have shapes (102400,) and (1423
你遇到困难只能说明没用心,我不相信孤煞天星!报错信息如下报错原因time与wavedata的两个参数维度不同;必须两个长度一致才可以;可以,假设wavedata的长度是4500,time长度是9000,那么把time长度取一半,就可以了len_time=len(time)/2time=time[0:len_time]...原创 2019-10-31 11:51:56 · 57913 阅读 · 1 评论 -
如何查看查看numpy的版本号
打开Anaconda Prompt 进入tensorflow环境 输入命令activate tensrflow 然后输入pip show numpy原创 2019-11-14 08:22:08 · 22186 阅读 · 2 评论 -
如何降低numpy的版本
1、先卸载numpypip uninstall numpy2、输入pip install -U numpy==1.11.0 1.11.0为想要降到哪一个的版本号原创 2019-11-14 08:32:21 · 52230 阅读 · 8 评论 -
史上最全 tensorflow与keras对应的版本
原创 2019-11-29 10:16:50 · 13711 阅读 · 3 评论 -
Python报错:module 'tensorflow.python.keras.backend' has no attribute 'get_graph'
报错信息如下报错原因tensorflow与keras版本不兼容;版本对应关系看这里https://blog.csdn.net/qq_37591637/article/details/103305520解决方案1、先卸载keraspip uninstall keras2、安装正确版本的keraspip install keras==2.2....原创 2019-11-29 10:56:10 · 5479 阅读 · 3 评论 -
MemoryError: Unable to allocate array with shape (61721, 16000) and data typ
疑惑解惑数据量太大了,也就是cpu内存小导致的;可以从以下几个方面去改进:0、换一个性能好的电脑,主要是硬件的问题1、numpy 在定义数组的时候,采用更低的精度。从float64降低为float32array_ = np.zeros((10000,10000),dtype='float32') # 默认float642、修改pycharm的运行内存 He...原创 2019-12-02 15:18:50 · 72911 阅读 · 6 评论 -
tensorflow安装报错could not find a version that satisfies the requirement tensorflow==1.13.0
错误信息如下解决方案其实原因已经在上面了,没有1.13.0,有的是1.13.0rc1;可以安装1.13.1或者1.13.2原创 2019-12-05 10:59:53 · 4801 阅读 · 3 评论 -
python编程之 with tf.name_scope(scope):是什么意思
疑惑with tf.name_scope(scope):是什么意思?解惑定义一个命名空间;命名空间对变量的使用没有任何影响,不会导致在命名空间内可以使用在其他地方就不可以使用的情况;有什么意义?(1)在某个tf.name_scope()指定的区域中定义的所有对象及各种操作,他们的“name”属性上会增加该命名区的区域名,用以区别对象属于哪个区域;(2)将不同的对...原创 2019-12-06 10:21:34 · 8465 阅读 · 0 评论 -
python编程之with tf.Session() as sess:有什么用
疑惑我经常在python代码中看到with tf.Session() as sess: 这个究竟有什么用处?解惑Session提供了Operation执行和Tensor求值的环境;由于回话接受以后需要手动关闭,不然变量没有办法释放;以下方法可以不用手动关闭使用with tf.Session()创建上下文(Context)来执行,当上下文退出时自动释放如果没...原创 2019-12-06 11:13:16 · 15496 阅读 · 0 评论 -
tensorflow入门之tf.matmul()用法详解 简单深刻
首先看一个线性代数的题目,两个矩阵相乘在tensorflow里面,如何进行矩阵的相乘呢?结果一模一样,是不是?原创 2019-12-10 12:00:47 · 8922 阅读 · 0 评论 -
ImportError: cannot import name 'tf_utils'
报错信息如下报错原因tensorflow与keras版本兼容问题解决方案Framework Env name (--env parameter) Description Docker Image Packages and Nvidia Settings TensorFlow 1.14 tensorflow-1.14 TensorFlow ...原创 2020-01-10 15:31:18 · 7509 阅读 · 1 评论 -
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: '/data/train/'
报错信息如下报错原因原因是因为os.listdir()只能创建一级目录。而os.makedirs()可以创建多级目录。解决方案把os.listdir()改成os.makedirs()原创 2020-01-10 15:34:08 · 19973 阅读 · 4 评论 -
Python编程之控制台报错:Using TensorFlow backend.
报错信息如下报错原因错误产生是因为tensorflow已经有更新,旧的内容已经不适用。解决方案更新tensorflow的版本1、pip uninstall tensorflow2、pip uninstall tensorflow-gpu3、pip install tensorflow4、pip install tensorflow-gpu...原创 2020-01-10 16:37:16 · 4103 阅读 · 0 评论 -
ImportError: Could not find the DLL(s) 'msvcp140_1.dll'.
报错信息ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a directory that is named in your %PATH% environment variable. You may install these ...原创 2020-01-10 16:45:29 · 17200 阅读 · 2 评论 -
AttributeError: module 'tensorflow' has no attribute 'get_default_graph'
报错信息如下报错原因keras与tensorflow版本不兼容导致的解决办法卸载掉keras,然后安装与之tensorflow版本对应的keras原创 2020-01-11 10:17:13 · 4134 阅读 · 0 评论 -
pip安装指定版本的keras
升级到指定版本pip install --upgrade keras==2.2.4安装指定版本pip install keras==2.2.4原创 2020-01-13 08:53:18 · 5905 阅读 · 0 评论 -
明明安装了numpy模块,但是运行程序还是报错,没有 No module named 'numpy'
报错原因安装的numpy模块的文件夹位置是否与配置的python.exe的文件位置是同一目录下的原创 2020-01-14 11:36:56 · 16501 阅读 · 3 评论 -
anaconda 与python之间的版本对应关系
原创 2020-01-16 11:01:28 · 2943 阅读 · 0 评论