fixed none name
This commit is contained in:
parent
a895bf1b71
commit
82d63a9677
|
@ -257,7 +257,7 @@ class Trainer(TrainerIO):
|
|||
for name in checkpoints:
|
||||
if '.ckpt' in name:
|
||||
epoch = name.split('epoch_')[1]
|
||||
epoch = re.sub('[^0-9]', '' ,epoch)
|
||||
epoch = int(re.sub('[^0-9]', '' ,epoch))
|
||||
|
||||
if epoch > last_epoch:
|
||||
last_epoch = epoch
|
||||
|
|
Loading…
Reference in New Issue