![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
文章平均质量分 53
落花雨12138
感兴趣的方向为图像分类、目标检测、压缩感知、超分辨率等
展开
-
解决tensorflow中 RuntimeError: tf.placeholder() is not compatible with eager execution
运行tf 1.x版本是代码报错错误提示:RuntimeError: tf.placeholder() is not compatible with eager execution.只需增加一行代码放在前面:原创 2022-09-22 16:50:01 · 338 阅读 · 0 评论 -
解决 AttributeError: module ‘tensorflow‘ has no attribute ‘contrib‘ 等类似的问题
使用tensorflow2.x版本的时候,使用调用tensorflow1.x函数的代码时,常常会出现module ‘tensorflow’ has no attribute ‘contrib’这样的问题,这是由于tensorflow2.x废弃了很多tensorflow1.x API接口,本文针对常见的几种错误来使tf2.0不降版本也能运行代码。原创 2022-09-22 16:41:01 · 39296 阅读 · 4 评论 -
解决 AttributeError: module ‘tensorflow‘ has no attribute ‘app‘
运行tensorflow的代码报错:Traceback (most recent call last):File “E:/Pycharm/LotteryPrediction/ssq-master/ssq.py”, line 25, in tf.app.flags.DEFINE_integer(‘batch_size’, -1, ‘batch size.’)AttributeError: module ‘tensorflow’ has no attribute ‘app’安装的tensorflow是2原创 2022-09-22 15:24:50 · 6496 阅读 · 1 评论 -
TensorFlow 未使用高级 CPU 指令,CPU存在警告:I tensorflow/core/platform/cpu_feature_guard.cc:193] I tensorflow/.
在测试tensorflow安装是否成功时,出现以下问题,虽然不影响程序的运行,还是好奇的查了下解决办法。“AVX AVX2。原创 2022-09-16 11:59:28 · 27545 阅读 · 10 评论 -
2022年Anaconda配置 pip 国内镜像源
有时候安装一些依赖包,网速慢,直接超时,可以指定国内源镜像。pip install -i 国内镜像地址 包名或者 python -m pip install -i 国内镜像地址 包名也可以在 pip的时候控制超时, 具体参数为“–default-timeout=100”,原创 2022-09-05 13:54:08 · 7077 阅读 · 0 评论 -
createTrainingData.py: error: the following arguments are required: positiveImages,XXX...详细报错解决方法
从网上找到一个开源代码,运行createTrainingData.py时,报如下错误:usage: createTrainingData.py [-h] positiveImages negativeImages train;createTrainingData.py: error: the following arguments are required: positiveImages,negativeImages, train原创 2022-08-25 13:47:02 · 863 阅读 · 0 评论