mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Moved some of the job config into base process so it will be easier to extend extensions
This commit is contained in:
@@ -40,7 +40,6 @@ class BaseSDTrainProcess(BaseTrainProcess):
|
||||
self.network_config = NetworkConfig(**network_config)
|
||||
else:
|
||||
self.network_config = None
|
||||
self.training_folder = self.get_conf('training_folder', self.job.training_folder)
|
||||
self.train_config = TrainConfig(**self.get_conf('train', {}))
|
||||
self.model_config = ModelConfig(**self.get_conf('model', {}))
|
||||
self.save_config = SaveConfig(**self.get_conf('save', {}))
|
||||
@@ -320,8 +319,6 @@ class BaseSDTrainProcess(BaseTrainProcess):
|
||||
unet.train()
|
||||
params += unet.parameters()
|
||||
|
||||
# TODO recover save if training network. Maybe load from beginning
|
||||
|
||||
### HOOK ###
|
||||
params = self.hook_add_extra_train_params(params)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user