def fetch_game_models(self, dir_path="anet"): for filename in os.listdir(dir_path): if filename.endswith(".h5"): model = ANET.new_from_file(dir_path + "/" + filename) key = self.filename_to_step(filename) self.models[key] = model else: continue
def __init__(self, IP_address=None, verbose=True): self.series_id = -1 BasicClientActorAbs.__init__(self, IP_address, verbose=verbose) self.model = ANET.new_from_file("../short_topp/model_step_10.h5")