Python报错:
Traceback (most recent call last):
File “code_09_mydataset.py”, line 138, in
img = Image.fromarray(np.uint8(i.numpy()))
AttributeError: ‘Tensor’ object has no attribute ‘numpy’
参考文献:
解决方案:
代码最前加
tf.enable_eager_execution()
方法源于:
https://www.tensorflowers.cn/t/6896
因篇幅问题不能全部显示,请点此查看更多更全内容