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()