-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(train): improve quality of training (#274)
* fix(train): initialize `_temp_epoch` variable * chore(train): move `__init__` of LightningModule to the top * fix(train): fix order of optimizer as per Lightning.AI documentation * fix(train): remove `with torch.no_grad():` call for generator loss During several tests with a fresh model it introduced (or perhaps kept) some metallic noise. Letting it run without the `torch.no_grad()` call improves this significantly. * fix(train): ensure `log_audio_dict` uses correct `total_batch_idx` * fix(train): only save checkpoints for first `batch_idx`
- Loading branch information
Showing
1 changed file
with
40 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters