Tensorflow:NotFoundError (see above for traceback): Key style_weight/Variable not found in checkpoin

Tensorflow报错解决:
NotFoundError (see above for traceback): Key style_weight/Variable not found in checkpoint

  1. 在 saver.restore()加载的前面,需要添加 tf.reset_default_graph(),作用是 清除默认图的堆栈,并设置全局图为默认图

  2. 删除ckpt存储位置的全部文件
    需要用这种方法解决的可能原因之一是:你在断点续训时修改了你的代码,比如你多加了一个变量之类。如果你把修改的内容进行恢复,那么你应该又能接着之前的断点继续运行下去

结束语:希望大家能够通过以上方法解决问题,附上一只可爱的狗狗.jpg


Tensorflow:NotFoundError (see above for traceback): Key style_weight/Variable not found in checkpoin
.

如果觉得我有地方讲的不好的或者有错误的欢迎给我留言,谢谢大家阅读(点个赞我可是会很开心的哦)~