在第三章里,运行 data_conver.py的时候,使用python3.5报错: File “G:\21个项目玩转深度学习——基于TensorFlow的实践详解\Deep-Learning-21-Examples-master\chapter_3\data_prepare\src\tfrecord.py”, line 341, in _find_image_files random.shuffle(shuffled_index) File “D:\Anaconda3\lib\random.py”, line 274, in shuffle x[i], x[j] = x[j], x[i] TypeError: ‘range’ object does not support item assignment
但是使用python2.7运行,又提示: File “G:\21个项目玩转深度学习——基于TensorFlow的实践详解\Deep-Learning-21-Examples-master\chapter_3\data_prepare\src\tfrecord.py”, line 65, in <module> import tensorflow as tf ImportError: No module named tensorflow python2.7又按不上tensorflow,请问该怎么运行,怎么产生tfrecord格式文件呢?
何老师好,12章里面,运行lstm_cell.call(inputs,h0),报错 ‘BasicLSTMCell’ object has no attribute ‘_kernel’是为啥呀?网上搜了好久没有找到解决方案。详细报错:
\program\Anaconda3\lib\site-packages\tensorflow\python\ops\rnn_cell_impl.py in call(self, inputs, state)
392
393 gate_inputs = math_ops.matmul(
—> 394 array_ops.concat([inputs, state], 1), self._kernel)
395 gate_inputs = nn_ops.bias_add(gate_inputs, self._bias)
396 output = self._activation(gate_inputs)
AttributeError: ‘BasicRNNCell’ object has no attribute ‘_kernel’
您提供的数据文件下载链接页面不存在啊
老师,您好,请问能不能在网盘里加上每章已经训练好的modle,重新训练的周期太长了
在第三章里,运行 data_conver.py的时候,使用python3.5报错:
File “G:\21个项目玩转深度学习——基于TensorFlow的实践详解\Deep-Learning-21-Examples-master\chapter_3\data_prepare\src\tfrecord.py”, line 341, in _find_image_files
random.shuffle(shuffled_index)
File “D:\Anaconda3\lib\random.py”, line 274, in shuffle
x[i], x[j] = x[j], x[i]
TypeError: ‘range’ object does not support item assignment
但是使用python2.7运行,又提示:
File “G:\21个项目玩转深度学习——基于TensorFlow的实践详解\Deep-Learning-21-Examples-master\chapter_3\data_prepare\src\tfrecord.py”, line 65, in <module>
import tensorflow as tf
ImportError: No module named tensorflow
python2.7又按不上tensorflow,请问该怎么运行,怎么产生tfrecord格式文件呢?
第六章的data文件夹中并没有已经下载好的模型啊 书中给的下载地址也打不开 怎么办啊???