I have a model.ckpt file that I downloaded from internet and located it in "ckpt" folder. When I have tried to get checkpoint it always return none. But when I check, the file is already exists. I'm a newbie in python. what's wrong with my code?
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