mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-10 12:21:57 +08:00
fixed none name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user