使用tf21问题收集
001 日期20200409
AttributeError: module 'pandas' has no attribute 'isna'
处理:’isna’改为’isnull’
原因:pandas版本问题,现使用的是0.20.3版本
pandas0.21版本以上,isnull()被isna()替代。
002 日期20200410
tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a directory: ./data/keras_model/20200410-164629\train; No such file or directory [Op:CreateSummaryFileWriter]
处理:
logdir = "./data/keras_model/" + datetime.datetime.now().strftime("%Y%m%d-%H%M%S")
改为
logdir = "data\\keras_model\\" + datetime.datetime.now().strftime("%Y%m%d-%H%M%S") + "\\"
备注:在linux系统不存在上述问题,在windows系统才需要这样处理。
003 日期20200416
AttributeError: module 'scipy.misc' has no attribute 'imsave'
处理:
imsave在SciPy 1.0.0中已弃用,在1.2.0中删除。请改用imageio.imwrite,现使用的是SciPy1.4.1版本。