tensorflow.python.framework.errors_impl.DataLossError:
tensorflow.python.framework.errors_impl.DataLossError: not an sstable(bad magic number)
这个错误是因为--input_checkpoint的名字搞错了,后面的.data-00000-of-00001不应该写。
tf1.13版本以后,加载预训练,需要index,模型权重和checkpoint,文件,缺少则会报错。
tf版加载模型报错:
https://github.com/YadiraF/PRNet
PRNet是Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network中提出的3D人脸重建算法模型,文章发表于ECCV2018,利用神经网络直接预测了3D landmark,取得了不错的效果。
tf1.15 报错:
ValueError: The passed save_path is not a valid checkpoint: Data\net-data\256_256_resfcn256_weight
经过测试,发现如果模型文件不存在,也会报这个错。
开源网络提供的预训练缺少模型的index文件。
找到补上就可以了。