我有一个model.ckpt文件,我从互联网上下载,并将其定位在"ckpt“文件夹中。当我试图获得检查点时,它总是不返回。但是当我检查时,文件已经存在了。我是蟒蛇的新手。我的密码怎么了?
import tensorflow as tf
model_folder = "ckpt"
if not tf.io.gfile.exists(model_folder):
raise AssertionError(
"Export directory doesn't exists. Please specify an export "
"directory: %s" % model_folder)
checkpoint = tf.train.get_checkpoint_state(model_folder)
input_checkpoint = checkpoint.model_checkpoint_path
https://stackoverflow.com/questions/73633955
复制