glow-pytorch icon indicating copy to clipboard operation
glow-pytorch copied to clipboard

Update train.py

Open AdnanKahveci opened this issue 1 year ago • 0 comments

Implemented a complete training pipeline for the Glow model, including:

  • Data Loading: Added dynamic data loading with image transformations.
  • Training Loop: Includes loss calculation, learning rate scheduling, and early stopping.
  • Validation: Periodically validates the model and saves checkpoints.
  • Model Checkpointing: Saves model and optimizer state at intervals.
  • Early Stopping: Halts training when no improvement is observed over a specified number of iterations.

AdnanKahveci avatar Sep 20 '24 22:09 AdnanKahveci