![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python/TensorFlow报错
Mr.Jcak
这个作者很懒,什么都没留下…
展开
-
ImportError: cannot import name ‘joblib‘
原因:安装的Scikit-learn版本太高,我安装的版本是0.23.1解决方法:需要将Scikit-learn版本降到0.21以下pip uninstall joblib scikit-leran sklearnpip install Scikit-learn==0.20.4原创 2020-08-01 09:40:16 · 6045 阅读 · 2 评论 -
scipy的butter带通滤波器nvalid value encountered in reduce ret = umr_sum(arr, axis, dtype, out, keepdims)
使用scipy的butter带通滤波器时报错:RuntimeWarning: invalid value encountered in reduce ret = umr_sum(arr, axis, dtype, out, keepdims)RuntimeWarning: overflow encountered in reduce ret = umr_sum(arr, axis, dtype, out, keepdims)RuntimeWarning: invalid value encoun原创 2020-07-10 18:00:30 · 1081 阅读 · 2 评论 -
Process finished with exit code -1073741819 (0xC0000005)
运行TensorFlow出现如下错误,尝试了很多网上的方法都不行,最后把代码中的中文路径改为英文后就解决了原创 2019-07-29 10:19:59 · 911 阅读 · 0 评论 -
TensorFlow打印一个tensor值报错
有时需要打印出一个tensor的值,明明代码没有问题,却一直报错,打印不出来,这是因为没有全局变量初始化的原因:sess.run(tf.global_variables_initializer())...原创 2019-03-28 10:08:42 · 612 阅读 · 0 评论 -
使用python的butter带通滤波器时出现RuntimeWarning
RuntimeWarning: invalid value encountered in reduce ret = umr_sum(arr, axis, dtype, out, keepdims)RuntimeWarning: overflow encountered in reduce ret = umr_sum(arr, axis, dtype, out, keepdims)·...原创 2019-03-12 15:55:48 · 1854 阅读 · 0 评论 -
使用python高通滤波器时报错numpy.linalg.linalg.LinAlgError: Singular matrix
原因是低通滤波器的阶数和高通滤波器一致造成的,因为我先使用了六阶低通滤波器,然后使用了六阶高通滤波器,改变一下高通滤波器的阶数即可原创 2019-03-12 15:02:14 · 5098 阅读 · 0 评论 -
pycharm运行程序时看不到任何结果显示
原因是用程序选择了console来运行,取消console方法如下:Run->Edit Configurations 取消run with python console的勾原创 2019-01-30 21:20:23 · 37036 阅读 · 7 评论 -
RandomShuffleQueue '_1_input/shuffle_batch/random_shuffle_queue' is closed and has insufficient elem
TensorFlow报错:RandomShuffleQueue '_1_input/shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 128, current size 0)image = tf.decode_raw(features['image_raw'], t...原创 2019-02-09 14:17:15 · 935 阅读 · 0 评论 -
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
python表示条件之间的逻辑与除了用and还可以用&,把and换成&即可原创 2019-01-11 10:07:59 · 3454 阅读 · 0 评论 -
FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated
使用scipy模块时出现警告:FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array in...原创 2018-12-30 12:24:47 · 8846 阅读 · 0 评论 -
TensorFlow报错run() got multiple values for argument 'feed_dict'
这个报错是因为sess.run(a,b,c)里要运行的多个变量没有用中括号括起来举个错误的例子:下面报错是因为sess.run里的c和d没有用中括号import tensorflow as tfa = tf.placeholder(tf.float32, [1])b = tf.placeholder(tf.float32, [1])c = tf.multiply(a, b)d ...原创 2018-12-04 23:23:57 · 2905 阅读 · 0 评论 -
TensorFlow报错:'dict' object has no attribute 'SerializeToString'
这个报错是因为sess.run(a,b,c)里要运行的多个变量没有用中括号括起来举个错误的例子:下面报错是因为sess.run里的c和d没有用中括号import tensorflow as tfa = tf.placeholder(tf.float32, [1])b = tf.placeholder(tf.float32, [1])c = tf.multiply(a, b)d ...原创 2018-12-04 23:19:05 · 3334 阅读 · 0 评论 -
'chcp' 不是内部或外部命令,也不是可运行的程序
在cmd窗口中输入activate tensorflow时报错'chcp' 不是内部或外部命令,也不是可运行的程序添加两个环境变量即可解决:将Anaconda的安装地址添加到环境变量“PATH”,如果没有可以新建一个,我的安装地址是“D:\Anaconda”,这个因人而异 将“C:\Windows\system32”添加到同一环境变量“PATH”如图所示:...原创 2018-11-28 22:48:27 · 17555 阅读 · 2 评论 -
AttributeError: module 'tensorflow' has no attribute 'FIFOQueue'
今天在学习队列时按照书里写了一段代码,但是运行时却报错了import tensorflow as tfq = tf.FIFOQueue(2, "int32")init = q.enqueue_many(([0, 10],))x = q.dequeue()y = x + 1q_inc = q.enqueue([y])with tf.Session() as sess: ...原创 2018-10-18 23:50:40 · 960 阅读 · 0 评论