Skip to content

Remove warnings during training #19

Open
LucasColas wants to merge 2 commits intotorrvision:mainfrom
LucasColas:main
Open

Remove warnings during training #19
LucasColas wants to merge 2 commits intotorrvision:mainfrom
LucasColas:main

Conversation

@LucasColas
Copy link

@LucasColas LucasColas commented Dec 15, 2025

This pull request makes a few targeted improvements to the training loop and utility functions. The most notable changes are a fix to the gradient clipping method to use the in-place version, and a reordering of the learning rate scheduler step to occur after model checkpointing.
The call to scheduler.step() has been moved to after the model is saved at the end of each epoch in train.py, ensuring the scheduler updates after checkpointing.

In train_utils.py, replaced torch.nn.utils.clip_grad_norm with the in-place version clip_grad_norm_ to be compliant with pytorch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant