- Github源码地址:https://github.com/myme5261314/dbn_tf,源项目是由python2编写的,介绍如何转化为在python3环境下运行
- 首先要将rbm_MNIST_test.py两个print语句分别加上括号
- 运行rbm_MNIST_test.py文件,首先会出现No module named 'Image’错误,将rbm_MNIST_test.py中的import Image修改为from PIL import Image(需要先安装pillow库)
- 再次运行出现以下错误,解决方法为打开input_data.py,修改_read32()函数
def _read32(bytestream):
dt = numpy.dtype