MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / get_all_ckpts

Method get_all_ckpts

utils/pl_utils.py:323–325  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

321 self.best = np.load(f'{self.filepath}/best_valid.npy')[0]
322
323 def get_all_ckpts(self):
324 return sorted(glob.glob(f'{self.filepath}/{self.prefix}_ckpt_steps_*.ckpt'),
325 key=lambda x: -int(re.findall('.*steps\_(\d+)\.ckpt', x)[0]))
326
327 def on_epoch_end(self, epoch, logs=None):
328 logs = logs or {}

Callers 1

on_epoch_endMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected