featurizer = TrackerFeaturizer.load(path)
meta_path = os.path.join(path, "keras_policy.json")
if os.path.isfile(meta_path):
with io.open(meta_path) as f:
meta = json.loads(f.read())
model_file = os.path.join(path, meta["model"])
graph = tf.Graph()
with graph.as_default():
After Change
featurizer = TrackerFeaturizer.load(path)
meta_path = os.path.join(path, "keras_policy.json")
if os.path.isfile(meta_path):
meta = json.loads(utils.read_file(meta_path))
model_file = os.path.join(path, meta["model"])
graph = tf.Graph()