Spaces:
Sleeping
Sleeping
File size: 377 Bytes
5904988 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import torch
from train import main
import os
if __name__ == "__main__":
print("π Resuming training from checkpoint...")
# Check if checkpoint exists
if not os.path.exists("models/checkpoint.pth"):
print("β No checkpoint found. Starting fresh training...")
else:
print("β
Checkpoint found. Resuming...")
main() |