Fix bug where EMA was not being initialized even when setup in the config. EMA will now properly be setup and used.
This commit is contained in:
1 parent
8968e41234
commit
82190b41e6
1 file changed
+3
@@ -2026,6 +2026,9 @@ class BaseSDTrainProcess(BaseTrainProcess):
|
|||||||
# Update the learning rates if they changed
|
# Update the learning rates if they changed
|
||||||
# optimizer.param_groups = previous_params
|
# optimizer.param_groups = previous_params
|
||||||
|
|
||||||
|
# set up the ema now that the optimizer (and its params) are ready
|
||||||
|
self.setup_ema()
|
||||||
|
|
||||||
lr_scheduler_params = self.train_config.lr_scheduler_params
|
lr_scheduler_params = self.train_config.lr_scheduler_params
|
||||||
|
|
||||||
# make sure it had bare minimum
|
# make sure it had bare minimum
|
||||||
|
|||||||
Reference in new issue
Block a user