ModuleNotFoundError: No module named 'tensorflow.contrib'
解决方法:
pip install tensorflow==1.14.0 # CPU版本
from gym.spaces import prng报错 找不到prng
解决方法:
pip install gym==0.10.5
module 'scipy.misc' has no attribute 'imresize'
解决办法
安装 skimage
pip3 install scikit-image
将
import scipy.misc scipy.misc.imresize(img, (im_height, im_width))
修改为:
from skimage.transform import resize resize(img, (im_height, im_width))
module 'tensorflow' has no attribute 'float'
tf.float32就报错,我给改成tf.float就报上面的错,接着我又改回tf.float32,结果程序就能神奇的训练了,真是个神奇的框架呀!!!!!